mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 23:51:56 +00:00
Workaround using new Clang with an old NDK.
We're using an old NDK and a new Clang. New Clangs default to `-stdlib=libc++` for Android, but those libraries cannot be found by default with an old NDK. Use an explicit `-stdlib=libstdc++` in the cxx_mode_flags. llvm-svn: 346051
This commit is contained in:
parent
f7108aef14
commit
9628392224
@ -59,6 +59,7 @@ if config.asan_shadow_scale != '':
|
||||
# transitive shared library dependency (via asan runtime).
|
||||
if config.android:
|
||||
config.target_cflags += " -pie -fuse-ld=gold -Wl,--enable-new-dtags"
|
||||
config.cxx_mode_flags.append('-stdlib=libstdc++')
|
||||
|
||||
# Clear some environment variables that might affect Clang.
|
||||
possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
|
||||
|
Loading…
Reference in New Issue
Block a user