summaryrefslogtreecommitdiff
path: root/examples/build_system/make
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-04-01 12:20:20 +0200
committerHiFiPhile <[email protected]>2024-04-01 12:20:20 +0200
commit9570836cece0beb6c61f1cc97e5de25dac136394 (patch)
tree9e00948162fc43e6483f7291b708dcf85a3414dc /examples/build_system/make
parent5c8b3d97f04443f386270eba6171af9a333855c6 (diff)
parent82dfe95655c7b7564363a2d5cb2f5e32d431b223 (diff)
Merge branch 'master' of https://github.com/hathach/tinyusb into vendor_fifo
Diffstat (limited to 'examples/build_system/make')
-rw-r--r--examples/build_system/make/toolchain/arm_gcc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/build_system/make/toolchain/arm_gcc.mk b/examples/build_system/make/toolchain/arm_gcc.mk
index b87657f53..ed5ddc970 100644
--- a/examples/build_system/make/toolchain/arm_gcc.mk
+++ b/examples/build_system/make/toolchain/arm_gcc.mk
@@ -74,6 +74,8 @@ LDFLAGS += -Wl,--print-memory-usage
endif
# from version 12
-ifeq ($(shell expr $(CC_VERSION_MAJOR) \>= 12),1)
+ifeq ($(strip $(if $(CMDEXE),\
+ $(shell if $(CC_VERSION_MAJOR) geq 12 (echo 1) else (echo 0)),\
+ $(shell expr $(CC_VERSION_MAJOR) \>= 12))), 1)
LDFLAGS += -Wl,--no-warn-rwx-segment
endif