Skip to content

Commit

Permalink
working on macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
kdschlosser committed May 8, 2024
1 parent 5f2a135 commit ca66772
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builder/macOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
unix_cmd.extend([
f'LV_CFLAGS="{lv_cflags}"',
f'LV_PORT=unix',
f'USER_C_MODULES="{script_dir}/ext_mod"',
f'"CFLAGS=-Wno-unused-function -I{script_dir}/lib/micropython -I{script_dir}/lib/micropython/ports/unix"'
f'USER_C_MODULES="{script_dir}/ext_mod"'
])
unix_cmd.extend(extra_args)

Expand Down Expand Up @@ -212,7 +211,7 @@ def compile(): # NOQA
data = f.read().decode('utf-8')

data = data.replace('QSTR_GEN_CXXFLAGS += $(QSTR_GEN_FLAGS)', 'QSTR_GEN_CXXFLAGS += $(QSTR_GEN_FLAGS)\n$(info $$QSTR_GEN_CFLAGS = $(QSTR_GEN_CFLAGS))')
data = data.replace('$(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py pp $(CPP) output', '$(info makeqstrdefs.py $$QSTR_GEN_CFLAGS = $(QSTR_GEN_CFLAGS))\n $(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py pp $(CPP) output')
data = data.replace('$(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py pp $(CPP) output', '$(info $$QSTR_GEN_CFLAGS = $(QSTR_GEN_CFLAGS))\n $(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py pp $(CPP) output')

with open(mkrules_path, 'wb') as f:
f.write(data.encode('utf-8'))
Expand Down

0 comments on commit ca66772

Please sign in to comment.