diff options
| author | IngHK <[email protected]> | 2024-04-04 14:07:32 +0200 |
|---|---|---|
| committer | IngHK <[email protected]> | 2024-04-04 14:07:32 +0200 |
| commit | e2a56308110c1b3948441bec7ea71e397dfc1b49 (patch) | |
| tree | 904e3c19c3c5e0027f243e8aa3d247b72051e886 /examples/build_system | |
| parent | 1bbd658352f5ecbfea13343df20cd02597dc31fd (diff) | |
| parent | 66cdf6d097d76f8d21ed4314651ac730d4023f99 (diff) | |
Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgrade
Diffstat (limited to 'examples/build_system')
| -rw-r--r-- | examples/build_system/make/toolchain/arm_gcc.mk | 4 |
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 |
