platform_build/core/clang/arm.mk
Tim Murray 43d5e1bbc4 Build changes necessary for LLVM 3.5 switch.
Change-Id: Icb6065daada7cb1d7425206830a4ef9e23454c03

Conflicts:
	core/clang/arm.mk
2014-04-24 13:14:32 -07:00

32 lines
752 B
Makefile

# Clang flags for arm arch, target or host.
CLANG_CONFIG_arm_EXTRA_ASFLAGS := \
-no-integrated-as
CLANG_CONFIG_arm_EXTRA_CFLAGS := \
-no-integrated-as
CLANG_CONFIG_arm_EXTRA_CPPFLAGS := \
-no-integrated-as
CLANG_CONFIG_arm_EXTRA_LDFLAGS := \
-no-integrated-as
# Include common unknown flags
CLANG_CONFIG_arm_UNKNOWN_CFLAGS := \
$(CLANG_CONFIG_UNKNOWN_CFLAGS) \
-mthumb-interwork \
-fgcse-after-reload \
-frerun-cse-after-loop \
-frename-registers \
-fno-builtin-sin \
-fno-strict-volatile-bitfields \
-fno-align-jumps \
-Wa,--noexecstack
define subst-clang-incompatible-arm-flags
$(subst -march=armv5te,-march=armv5t,\
$(subst -march=armv5e,-march=armv5,\
$(subst -mcpu=cortex-a15,-march=armv7-a,\
$(1))))
endef