[compiler-rt] r350020 - Set the default SANITIZER_CXX_ABI library to libc++ for FreeBSD, and

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 23 03:49:47 PST 2018


Author: dim
Date: Sun Dec 23 03:49:47 2018
New Revision: 350020

URL: http://llvm.org/viewvc/llvm-project?rev=350020&view=rev
Log:
Set the default SANITIZER_CXX_ABI library to libc++ for FreeBSD, and
also mark it as a system library, like on macOS.

Modified:
    compiler-rt/trunk/CMakeLists.txt

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=350020&r1=350019&r2=350020&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Sun Dec 23 03:49:47 2018
@@ -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)




More information about the llvm-commits mailing list