Set the default SANITIZER_CXX_ABI library to libc++ for FreeBSD, and
authorDimitry Andric <dimitry@andric.com>
Sun, 23 Dec 2018 11:49:47 +0000 (11:49 +0000)
committerDimitry Andric <dimitry@andric.com>
Sun, 23 Dec 2018 11:49:47 +0000 (11:49 +0000)
also mark it as a system library, like on macOS.

llvm-svn: 350020

compiler-rt/CMakeLists.txt

index 4697dba..ab69c51 100644 (file)
@@ -200,7 +200,7 @@ set(CXXABIS none default libstdc++ libc++)
 set_property(CACHE SANITIZER_CXX_ABI PROPERTY STRINGS ;${CXXABIS})
 
 if (SANITIZER_CXX_ABI STREQUAL "default")
-  if (APPLE)
+  if (APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
     set(SANITIZER_CXX_ABI_LIBNAME "libc++")
     set(SANITIZER_CXX_ABI_SYSTEM 1)
   elseif (FUCHSIA)