Skip to content

Commit b0af6c1

Browse files
committed
hopefully fixes macos build
1 parent 55fe7b2 commit b0af6c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

builder/macOS.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ 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')
218+
219+
data = data.replace('-Werror', '')
220+
221+
with open(makefile_path, 'wb') as f:
222+
f.write(data.encode('utf-8'))
223+
215224
build_sdl()
216225

217226
return_code, _ = spawn(compile_cmd)

0 commit comments

Comments
 (0)