Skip to content

Commit 2c1725a

Browse files
committed
might fix macOS build
1 parent a87da62 commit 2c1725a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

builder/macOS.py

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

7171
if 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}"')
72+
unix_cmd.append(f'LV_CFLAGS="{lv_cflags}"')
7773

7874
unix_cmd.extend([
7975
'LV_PORT=unix',
8076
f'USER_C_MODULES="{script_dir}/ext_mod"',
8177
(
8278
'"CFLAGS_EXTRA='
79+
'-Wno-sign-compare '
8380
'-Wno-unused-function '
8481
'-Wno-double-promotion '
8582
'-Wno-unused-command-line-argument"'

0 commit comments

Comments
 (0)