[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.

llvm-svn: 315039
This commit is contained in:
Evgeniy Stepanov 2017-10-06 00:00:53 +00:00
parent 6651820a72
commit 505260449e
1 changed files with 1 additions and 1 deletions

View File

@ -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',