Skip to content

Commit

Permalink
adding compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kdschlosser committed Apr 30, 2024
1 parent caf37ff commit 48d702c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion builder/macOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
if board:
unix_cmd.append(f'VARIANT={board}')

if lv_cflags:
lv_cflags += ' -Wno-missing-field-initializers -Wno-unused-function'
else:
lv_cflags = '-Wno-missing-field-initializers -Wno-unused-function'

unix_cmd.extend([
f'LV_CFLAGS="{lv_cflags}"',
f'LV_PORT=unix',
f'USER_C_MODULES="{script_dir}/ext_mod"'
f'USER_C_MODULES="{script_dir}/ext_mod"',
'CFLAGS="-Wno-missing-field-initializers -Wno-unused-function"'
])
unix_cmd.extend(extra_args)

Expand Down
2 changes: 1 addition & 1 deletion ext_mod/lcd_bus/micropython.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CFLAGS_USERMOD += -I$(MOD_DIR)
CFLAGS_USERMOD += -I$(MOD_DIR)/common_include
CFLAGS_USERMOD += -I$(MOD_DIR)/sdl_bus
CFLAGS_USERMOD += -Wno-missing-field-initializers
CFLAGS_USERMOD += -Wunused-function
CFLAGS_USERMOD += -Wno-unused-function

SRC_USERMOD_C += $(MOD_DIR)/modlcd_bus.c
SRC_USERMOD_C += $(MOD_DIR)/lcd_types.c
Expand Down
2 changes: 1 addition & 1 deletion ext_mod/lvgl/micropython.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CFLAGS_USERMOD += -I$(LVGL_BINDING_DIR)
CFLAGS_USERMOD += -I$(LVGL_DIR)
CFLAGS_USERMOD += -I$(LVGL_BINDING_DIR)/include
CFLAGS_USERMOD += -Wno-missing-field-initializers
CFLAGS_USERMOD += -Wunused-function
CFLAGS_USERMOD += -Wno-unused-function

ALL_LVGL_SRC = $(shell find $(LVGL_DIR) -type f -name '*.h') $(LVGL_BINDING_DIR)/lib/lv_conf.h

Expand Down

0 comments on commit 48d702c

Please sign in to comment.