d1baa0f001
This was marked as unsupported only on arm[64], even though it works. For soong, we want to keep a single list of unsupported clang flags for all architectures. Change-Id: I9c4ae0f255c549d2346ba7abae57e22c86ddcc61
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
# Clang flags for arm arch, target or host.
|
|
|
|
CLANG_CONFIG_arm_EXTRA_ASFLAGS :=
|
|
|
|
CLANG_CONFIG_arm_EXTRA_CFLAGS :=
|
|
|
|
ifneq (,$(filter krait,$(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)))
|
|
# Android's clang support's krait as a CPU whereas GCC doesn't. Specify
|
|
# -mcpu here rather than the more normal core/combo/arch/arm/armv7-a-neon.mk.
|
|
CLANG_CONFIG_arm_EXTRA_CFLAGS += -mcpu=krait -mfpu=neon-vfpv4
|
|
endif
|
|
|
|
CLANG_CONFIG_arm_EXTRA_CPPFLAGS :=
|
|
|
|
CLANG_CONFIG_arm_EXTRA_LDFLAGS :=
|
|
|
|
# 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-align-jumps \
|
|
-fno-builtin-sin \
|
|
-fno-caller-saves \
|
|
-fno-early-inlining \
|
|
-fno-move-loop-invariants \
|
|
-fno-partial-inlining \
|
|
-fno-strict-volatile-bitfields \
|
|
-fno-tree-copy-prop \
|
|
-fno-tree-loop-optimize
|
|
|
|
define subst-clang-incompatible-arm-flags
|
|
$(subst -march=armv5te,-march=armv5t,\
|
|
$(subst -march=armv5e,-march=armv5,\
|
|
$(1)))
|
|
endef
|