summaryrefslogtreecommitdiff
path: root/mk/toolchain.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/toolchain.mk')
-rw-r--r--mk/toolchain.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index d1534d4..0a8e5f1 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -65,7 +65,8 @@ __TARGET_CFLAGS += $(if $(CONFIG_EMBTK_TARGET_SPEED_OPTIMIZED),-O3)
__TARGET_CFLAGS += $(if $(CONFIG_EMBTK_TARGET_WITH_DEBUG_DATA),-g)
# cflags for clang
-__clang_cflags := $(EMBTK_TARGET_MCPU)
+__clang_cflags := -Qunused-arguments -fcolor-diagnostics
+__clang_cflags += -Wl,--hash-style=sysv $(EMBTK_TARGET_MCPU)
__clang_cflags += $(if $(CONFIG_EMBTK_SOFTFLOAT),-mfloat-abi=soft)
__clang_cflags += $(if $(CONFIG_EMBTK_HARDFLOAT),-mfloat-abi=hard)
__TARGET_CFLAGS += $(if $(CONFIG_EMBTK_LLVM_ONLY_TOOLCHAIN),$(__clang_cflags))