summaryrefslogtreecommitdiff
path: root/test/lit.common.cfg
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 00:00:53 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 00:00:53 +0000
commitb3c632084941e7b9669416f91c7f90b7fcd49645 (patch)
treecce5743a0d916e183ff4db1c26cd5608f8e11809 /test/lit.common.cfg
parent2d21e8df3faee7f35589618ac36ad71d2c20908a (diff)
[asan] Use gold linker in android tests.
Replace a partial workaround for ld.bfd strangeness with the ultimate one: -fuse-ld=gold. Reason: ld.bfd problem gets worse with libc++-based NDK toolchain. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.common.cfg')
-rw-r--r--test/lit.common.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index 2058120e0..a16fb3307 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -55,7 +55,7 @@ config.available_features.add(compiler_id)
# BFD linker in 64-bit android toolchains fails to find libm.so, which is a
# transitive shared library dependency (via asan runtime).
if config.android:
- config.target_cflags += " -lm -Wl,--enable-new-dtags"
+ config.target_cflags += " -fuse-ld=gold -Wl,--enable-new-dtags"
# Clear some environment variables that might affect Clang.
possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',