mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
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 llvm-svn: 351252
This commit is contained in:
parent
d129d3e93f
commit
f6627ce834
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user