Skip to content

Commit e69669a

Browse files
committed
fixes compiler errors on macos
1 parent e5360ec commit e69669a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

builder/macOS.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,18 @@ def compile(): # NOQA
212212
with open(mpconfigvariant_common_path, 'w') as f:
213213
f.write(mpconfigvariant_common)
214214

215-
makefile_path = 'lib/micropython/ports/unix/Makefile'
216-
with open(makefile_path, 'rb') as f:
217-
data = f.read().decode('utf-8')
215+
for makefile_path in (
216+
'lib/micropython/ports/unix/Makefile',
217+
'lib/micropython/py/dynruntime.mk'
218+
):
219+
220+
with open(makefile_path, 'rb') as f:
221+
data = f.read().decode('utf-8')
218222

219-
data = data.replace('-Werror', '')
223+
data = data.replace('-Werror', '')
220224

221-
with open(makefile_path, 'wb') as f:
222-
f.write(data.encode('utf-8'))
225+
with open(makefile_path, 'wb') as f:
226+
f.write(data.encode('utf-8'))
223227

224228
build_sdl()
225229

0 commit comments

Comments
 (0)