summaryrefslogtreecommitdiffstats
path: root/core/llvm_config.mk
diff options
context:
space:
mode:
authorKeun young Park <keunyoung@google.com>2012-08-15 17:53:29 -0700
committerKeun young Park <keunyoung@google.com>2012-08-16 16:28:04 -0700
commit6e86a57b0f1331a2143346becc96be68cc8c3302 (patch)
tree5a628a903b005cbc2c3157a4bffba504cdd2e7c7 /core/llvm_config.mk
parenta8811fda4fd96d3697869a654e1172a353874bac (diff)
downloadbuild-6e86a57b0f1331a2143346becc96be68cc8c3302.zip
build-6e86a57b0f1331a2143346becc96be68cc8c3302.tar.gz
build-6e86a57b0f1331a2143346becc96be68cc8c3302.tar.bz2
add CLANG configurations for MIPS
Change-Id: I36ed8089c447c20c229c348a096b49ff126552de
Diffstat (limited to 'core/llvm_config.mk')
-rw-r--r--core/llvm_config.mk22
1 files changed, 19 insertions, 3 deletions
diff --git a/core/llvm_config.mk b/core/llvm_config.mk
index 6d08e78..501299d 100644
--- a/core/llvm_config.mk
+++ b/core/llvm_config.mk
@@ -39,6 +39,25 @@ ifeq ($(TARGET_ARCH),arm)
-fno-align-jumps \
-Wa,--noexecstack
endif
+ifeq ($(TARGET_ARCH),mips)
+ CLANG_CONFIG_EXTRA_CFLAGS += \
+ -target mipsel-linux-android \
+ -nostdlibinc \
+ -B$(TARGET_TOOLCHAIN_ROOT)/mipsel-linux-android/bin
+ CLANG_CONFIG_EXTRA_LDFLAGS += \
+ -target mipsel-linux-android \
+ -B$(TARGET_TOOLCHAIN_ROOT)/mipsel-linux-android/bin
+ CLANG_CONFIG_UNKNOWN_CFLAGS += \
+ -EL \
+ -mips32r2 \
+ -mhard-float \
+ -fno-strict-volatile-bitfields \
+ -fgcse-after-reload \
+ -frerun-cse-after-loop \
+ -frename-registers \
+ -march=mips32r2 \
+ -mtune=mips32r2
+endif
ifeq ($(TARGET_ARCH),x86)
CLANG_CONFIG_EXTRA_CFLAGS += \
-target i686-linux-android \
@@ -71,7 +90,6 @@ $(call clang-flags-subst,-march=armv5e,-march=armv5)
$(call clang-flags-subst,-Wno-psabi,)
$(call clang-flags-subst,-Wno-unused-but-set-variable,)
-
ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS := -faddress-sanitizer
ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS := -Wl,-u,__asan_preinit
ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES := libdl libasan_preload
@@ -79,6 +97,4 @@ ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES := libasan
# This allows us to use the superset of functionality that compiler-rt
# provides to Clang (for supporting features like -ftrapv).
-ifneq ($(TARGET_ARCH),mips)
COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES := libcompiler-rt-extras
-endif