diff options
| author | hathach <[email protected]> | 2023-03-19 12:47:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-19 12:47:05 +0700 |
| commit | 322f58ea8530e2b43d00a087b6d501776be25a00 (patch) | |
| tree | 1a136349f8cc2da319f404c7b3149bc5ee80ff66 /examples/rules.mk | |
| parent | ab0da3c30baab6eb63e55217f2b4d5a719fb86e4 (diff) | |
add CFLAGS_SKIP to improve sam compile time
Diffstat (limited to 'examples/rules.mk')
| -rw-r--r-- | examples/rules.mk | 4 |
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 |
