summaryrefslogtreecommitdiff
path: root/lib/gwp_asan
diff options
context:
space:
mode:
authorMitch Phillips <mitchphillips@outlook.com>2019-05-17 20:34:37 +0000
committerMitch Phillips <mitchphillips@outlook.com>2019-05-17 20:34:37 +0000
commit4d008addf6cc869b3a452f751584a3a8148094af (patch)
tree62d94f77524c63033718adc8f61a78e7a52ce135 /lib/gwp_asan
parent168d74df4ce90b6734f2ff0e5bd7422ae2bd998b (diff)
downloadcompiler-rt-4d008addf6cc869b3a452f751584a3a8148094af.tar.gz
Explicitly remove -stdlib=libc++, as we pass -nostdinc++ anyway. This should fix the android builtbots, and is a direct copy from what Scudo does.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@361073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/gwp_asan')
-rw-r--r--lib/gwp_asan/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gwp_asan/CMakeLists.txt b/lib/gwp_asan/CMakeLists.txt
index 3b1a2b7f8..1f6d973b3 100644
--- a/lib/gwp_asan/CMakeLists.txt
+++ b/lib/gwp_asan/CMakeLists.txt
@@ -15,6 +15,9 @@ set(GWP_ASAN_HEADERS
# parts of the C++ standard library.
set(GWP_ASAN_CFLAGS -fno-rtti -fno-exceptions -nostdinc++)
+# Remove -stdlib= which is unused when passing -nostdinc++.
+string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+
if (COMPILER_RT_HAS_GWP_ASAN)
foreach(arch ${GWP_ASAN_SUPPORTED_ARCH})
add_compiler_rt_runtime(