summaryrefslogtreecommitdiff
path: root/examples/build_system
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-24 22:11:08 +0700
committerhathach <[email protected]>2024-04-24 22:11:08 +0700
commiteab42d90d42234997ea55c01b1a510c9bb6434aa (patch)
tree361c1a6e6a4a7dd199fc006d2f3dd7fa36b9837d /examples/build_system
parenta7bf0e3e7f7799c28e370826710810033c117744 (diff)
update clang make build for stm32: f0 f1 f2 f3 f4 f7 h7 g0 g4 l0 l4 samd21 samd51 nrf
Diffstat (limited to 'examples/build_system')
-rw-r--r--examples/build_system/make/toolchain/gcc_rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/build_system/make/toolchain/gcc_rules.mk b/examples/build_system/make/toolchain/gcc_rules.mk
index 3cd87db64..fc5225503 100644
--- a/examples/build_system/make/toolchain/gcc_rules.mk
+++ b/examples/build_system/make/toolchain/gcc_rules.mk
@@ -22,6 +22,7 @@ CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
endif
ifeq ($(TOOLCHAIN),clang)
+CFLAGS += $(CFLAGS_CLANG)
LDFLAGS += $(CFLAGS) $(LDFLAGS_CLANG)
else
LDFLAGS += $(CFLAGS) $(LDFLAGS_GCC)