Skip to content

Commit 95ef355

Browse files
committed
working on macOS build
1 parent f06b2b7 commit 95ef355

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builder/macOS.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
6666
f'LV_CFLAGS="{lv_cflags}"',
6767
f'LV_PORT=unix',
6868
f'USER_C_MODULES="{script_dir}/ext_mod"',
69-
'CFLAGS=-Wno-unused-function'
69+
f'"CFLAGS=-Wno-unused-function -I{script_dir}/lib/micropython -I{script_dir}/lib/micropython/ports/unix"'
7070
])
7171
unix_cmd.extend(extra_args)
7272

@@ -208,8 +208,7 @@ def compile(): # NOQA
208208
f.write(mpconfigvariant_common)
209209

210210
for makefile_path in (
211-
'lib/micropython/ports/unix/Makefile',
212-
'lib/micropython/py/mkrules.mk'
211+
'lib/micropython/py/mkrules.mk',
213212
):
214213
with open(makefile_path, 'rb') as f:
215214
data = f.read().decode('utf-8')

0 commit comments

Comments
 (0)