Skip to content

Commit d445c98

Browse files
committed
might fix macOS build
1 parent 89c9c8c commit d445c98

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

builder/macOS.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
6969
unix_cmd.append(f'VARIANT={board}')
7070

7171
if lv_cflags:
72-
unix_cmd.append(f'LV_CFLAGS="{lv_cflags}"')
72+
lv_cflags += ' -Wno-sign-compare'
73+
else:
74+
lv_cflags = '-Wno-sign-compare'
75+
76+
unix_cmd.append(f'LV_CFLAGS="{lv_cflags}"')
7377

7478
unix_cmd.extend([
7579
'LV_PORT=unix',

ext_mod/lvgl/micropython.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ifneq (,$(findstring -Wno-missing-field-initializers, $(CFLAGS_USERMOD)))
2424
CFLAGS_USERMOD += -Wno-missing-field-initializers
2525
endif
2626

27-
CFLAGS_USERMOD += -Wno-sign-compare
2827

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

0 commit comments

Comments
 (0)