Skip to content

Commit a239557

Browse files
authored
fix: macos build (#325)
1 parent b677818 commit a239557

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ BOARD ?= STM32F469DISC
33
FLAVOR ?= SPECTER
44
USER_C_MODULES ?= ../../../usermods
55
MPY_DIR ?= f469-disco/micropython
6-
MPY_CFLAGS ?= -Wno-dangling-pointer -Wno-enum-int-mismatch
6+
ifeq ($(shell uname),Linux)
7+
MPY_CFLAGS ?= -Wno-dangling-pointer -Wno-enum-int-mismatch
8+
else
9+
MPY_CFLAGS ?=
10+
endif
711
FROZEN_MANIFEST_DISCO ?= ../../../../manifests/disco.py
812
FROZEN_MANIFEST_DEBUG ?= ../../../../manifests/debug.py
913
FROZEN_MANIFEST_UNIX ?= ../../../../manifests/unix.py

0 commit comments

Comments
 (0)