Skip to content

Commit f06b2b7

Browse files
committed
working on macOS build
1 parent 50ebbcc commit f06b2b7

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

builder/macOS.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,17 @@ def compile(): # NOQA
207207
with open(mpconfigvariant_common_path, 'w') as f:
208208
f.write(mpconfigvariant_common)
209209

210-
# for makefile_path in (
211-
# 'lib/micropython/ports/unix/Makefile',
212-
# 'lib/micropython/py/dynruntime.mk'
213-
# ):
214-
#
215-
# with open(makefile_path, 'rb') as f:
216-
# data = f.read().decode('utf-8')
217-
#
218-
# data = data.replace('-Werror', '')
219-
#
220-
# with open(makefile_path, 'wb') as f:
221-
# f.write(data.encode('utf-8'))
210+
for makefile_path in (
211+
'lib/micropython/ports/unix/Makefile',
212+
'lib/micropython/py/mkrules.mk'
213+
):
214+
with open(makefile_path, 'rb') as f:
215+
data = f.read().decode('utf-8')
216+
217+
data = data.replace('QSTR_GEN_CFLAGS := $(CFLAGS)', 'QSTR_GEN_CFLAGS = $(CFLAGS)')
218+
219+
with open(makefile_path, 'wb') as f:
220+
f.write(data.encode('utf-8'))
222221

223222
build_sdl()
224223

0 commit comments

Comments
 (0)