[compiler-rt] r205919 - Enable building of sanitizers on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Apr 9 11:45:12 PDT 2014


Author: vkutuzov
Date: Wed Apr  9 13:45:12 2014
New Revision: 205919

URL: http://llvm.org/viewvc/llvm-project?rev=205919&view=rev
Log:
Enable building of sanitizers on FreeBSD

Modified:
    compiler-rt/trunk/lib/CMakeLists.txt

Modified: compiler-rt/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/CMakeLists.txt?rev=205919&r1=205918&r2=205919&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Wed Apr  9 13:45:12 2014
@@ -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)





More information about the llvm-commits mailing list