Set the default SANITIZER_CXX_ABI library to libc++ for FreeBSD, and

also mark it as a system library, like on macOS.

llvm-svn: 350020
This commit is contained in:
Dimitry Andric 2018-12-23 11:49:47 +00:00
parent 5e4a03a089
commit a5afbce82b
1 changed files with 1 additions and 1 deletions

View 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)