summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-01-15 21:27:44 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-01-15 21:27:44 +0000
commitd522c5f16265780366bd4d5ce8ff1ba28cb33bef (patch)
tree9510275a21ffc4c200ae4eae06878b487dcad2d1
parent279b3614d875f91c1de3ccd667c0f0f08f7eff24 (diff)
downloadcompiler-rt-d522c5f16265780366bd4d5ce8ff1ba28cb33bef.tar.gz
compiler-rt/test: Clean up Android specific workarounds in lit.common.cfg.
-pie -Wl,--enable-new-dtags are no longer needed because the driver passes them by default as of r316606. Prepend -fuse-ld=gold instead of appending it so that the linker can be overridden using COMPILER_RT_TEST_COMPILER_CFLAGS. Differential Revision: https://reviews.llvm.org/D56697 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351252 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/lit.common.cfg7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index 163e587a3..cd00f32dd 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -55,10 +55,11 @@ config.available_features.add(compiler_id)
if config.asan_shadow_scale != '':
config.target_cflags += " -mllvm -asan-mapping-scale=" + config.asan_shadow_scale
-# BFD linker in 64-bit android toolchains fails to find libm.so, which is a
-# transitive shared library dependency (via asan runtime).
+# BFD linker in 64-bit android toolchains fails to find libc++_shared.so, which
+# is a transitive shared library dependency (via asan runtime).
if config.android:
- config.target_cflags += " -pie -fuse-ld=gold -Wl,--enable-new-dtags"
+ # Prepend the flag so that it can be overridden.
+ config.target_cflags = "-fuse-ld=gold " + config.target_cflags
config.cxx_mode_flags.append('-stdlib=libstdc++')
# Clear some environment variables that might affect Clang.