summaryrefslogtreecommitdiffstats
path: root/compiler-rt/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-05-17 23:50:35 +0000
committerPetr Hosek <phosek@chromium.org>2018-05-17 23:50:35 +0000
commit3eb71831e551f913cd2492001858594bed18c8bb (patch)
treec9d936ce7c8a234775709970e43ff7bf5f90512e /compiler-rt/CMakeLists.txt
parent70a270da5f4a27b670cba1cb8148fcce5c094f4f (diff)
downloadbcm5719-llvm-3eb71831e551f913cd2492001858594bed18c8bb.tar.gz
bcm5719-llvm-3eb71831e551f913cd2492001858594bed18c8bb.zip
[CMake] Reland "Make simple source used for CMake checks a C file"
The source being compiled is plain C, but using .cc extension forces it to be compiled as C++ which requires a working C++ compiler including C++ library which may not be the case when we're building compiler-rt together with libcxx as part of runtimes build. Differential Revision: https://reviews.llvm.org/D47031 llvm-svn: 332679
Diffstat (limited to 'compiler-rt/CMakeLists.txt')
-rw-r--r--compiler-rt/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 57045c20647..84a7dcd81e5 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -145,6 +145,7 @@ if (SANITIZER_CXX_ABI STREQUAL "default")
set(SANITIZER_CXX_ABI_SYSTEM 1)
else()
set(SANITIZER_CXX_ABI_LIBNAME "libstdc++")
+ set(SANITIZER_CXX_ABI_SYSTEM 1)
endif()
else()
set(SANITIZER_CXX_ABI_LIBNAME "${SANITIZER_CXX_ABI}")
OpenPOWER on IntegriCloud