Index: test/lit.common.cfg =================================================================== --- test/lit.common.cfg +++ test/lit.common.cfg @@ -59,6 +59,7 @@ # 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',