1f9828387d
1. Following the setup of gcc in build/core/combo/, we added the [HOST|TARGET]_<arch>.mk clang config files, and load only the configs needed by the current product. 2. Added support for the 2nd arch. Change-Id: I2a383418a9688a050b39492f8e489d40eeeb5f2d
29 lines
717 B
Makefile
29 lines
717 B
Makefile
# Clang flags for arm64 arch, target or host.
|
|
|
|
$(warning Untested arm64 clang flags, fix me!)
|
|
|
|
CLANG_CONFIG_arm64_EXTRA_ASFLAGS :=
|
|
|
|
CLANG_CONFIG_arm64_EXTRA_CFLAGS := \
|
|
-mllvm -arm-enable-ehabi
|
|
|
|
CLANG_CONFIG_arm64_EXTRA_LDFLAGS :=
|
|
|
|
# Include common unknown flags
|
|
CLANG_CONFIG_arm64_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-arm64-flags
|
|
$(subst -march=armv5te,-march=armv5t,\
|
|
$(subst -march=armv5e,-march=armv5,\
|
|
$(subst -mcpu=cortex-a15,-march=armv7-a,\
|
|
$(1))))
|
|
endef
|