[compiler-rt] r346051 - Workaround using new Clang with an old NDK.

Dan Albert via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 2 15:57:04 PDT 2018


Author: danalbert
Date: Fri Nov  2 15:57:04 2018
New Revision: 346051

URL: http://llvm.org/viewvc/llvm-project?rev=346051&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/test/lit.common.cfg

Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=346051&r1=346050&r2=346051&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Fri Nov  2 15:57:04 2018
@@ -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',




More information about the llvm-commits mailing list