summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-19 12:47:05 +0700
committerhathach <[email protected]>2023-03-19 12:47:05 +0700
commit322f58ea8530e2b43d00a087b6d501776be25a00 (patch)
tree1a136349f8cc2da319f404c7b3149bc5ee80ff66 /examples
parentab0da3c30baab6eb63e55217f2b4d5a719fb86e4 (diff)
add CFLAGS_SKIP to improve sam compile time
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 59cf4fd1f..b85837c16 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -66,6 +66,10 @@ ifeq ($(NO_LTO),1)
CFLAGS := $(filter-out -flto,$(CFLAGS))
endif
+ifneq ($(CFLAGS_SKIP),)
+CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
+endif
+
LDFLAGS += $(CFLAGS) -Wl,[email protected] -Wl,-cref -Wl,-gc-sections
ifdef LD_FILE