[compiler-rt] r201783 - [FreeBSD] Enable building a few runtime libraries on FreeBSD.

Alexey Samsonov samsonov at google.com
Thu Feb 20 05:14:06 PST 2014


Author: samsonov
Date: Thu Feb 20 07:14:05 2014
New Revision: 201783

URL: http://llvm.org/viewvc/llvm-project?rev=201783&view=rev
Log:
[FreeBSD] Enable building a few runtime libraries on FreeBSD.

Patch by Viktor Kutuzov!

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=201783&r1=201782&r2=201783&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Thu Feb 20 07:14:05 2014
@@ -6,8 +6,9 @@ include(SanitizerUtils)
 # Don't build sanitizers in the bootstrap build.
 if(NOT LLVM_USE_SANITIZER)
   # AddressSanitizer is supported on Linux and Mac OS X.
+  # FreeBSD port is work-in-progress.
   # 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 +21,9 @@ if(NOT LLVM_USE_SANITIZER)
     add_subdirectory(interception)
     add_subdirectory(sanitizer_common)
   endif()
-  if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux" AND NOT ANDROID)
+  if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD" AND NOT ANDROID)
     # LSan, UBsan and profile can be built on Mac OS and Linux.
+    # FreeBSD port is work-in-progress.
     add_subdirectory(lsan)
     add_subdirectory(profile)
     add_subdirectory(ubsan)





More information about the llvm-commits mailing list