summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2014-04-09 18:45:12 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2014-04-09 18:45:12 +0000
commit7004b8c07c3bf5f4b28d336b4521d4e127ef026f (patch)
tree022fca36315323518aa38056769ad655b68ea4a8 /compiler-rt
parentae89ddedff0cb34024e2325bf8b85948b994907d (diff)
downloadbcm5719-llvm-7004b8c07c3bf5f4b28d336b4521d4e127ef026f.tar.gz
bcm5719-llvm-7004b8c07c3bf5f4b28d336b4521d4e127ef026f.zip
Enable building of sanitizers on FreeBSD
llvm-svn: 205919
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt
index f033e366879..fcde9a20cef 100644
--- a/compiler-rt/lib/CMakeLists.txt
+++ b/compiler-rt/lib/CMakeLists.txt
@@ -5,9 +5,9 @@ include(AddCompilerRT)
include(SanitizerUtils)
# Don't build sanitizers in the bootstrap build.
if(NOT LLVM_USE_SANITIZER)
- # AddressSanitizer is supported on Linux and Mac OS X.
+ # AddressSanitizer is supported on Linux, FreeBSD and Mac OS X.
# 32-bit Windows support is experimental.
- if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux")
+ if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD")
set(SUPPORTS_BUILDING_ASAN TRUE)
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows"
AND MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 4)
@@ -20,8 +20,8 @@ if(NOT LLVM_USE_SANITIZER)
add_subdirectory(interception)
add_subdirectory(sanitizer_common)
endif()
- if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux" AND NOT ANDROID)
- # LSan, UBsan and profile can be built on Mac OS and Linux.
+ if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD" AND NOT ANDROID)
+ # LSan, UBsan and profile can be built on Mac OS, FreeBSD and Linux.
add_subdirectory(lsan)
add_subdirectory(profile)
add_subdirectory(ubsan)
OpenPOWER on IntegriCloud