Build LLVMgold.so on FreeBSD using cmake.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Mar 2013 12:01:05 +0000 (12:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Mar 2013 12:01:05 +0000 (12:01 +0000)
Patch by Stephen Checkoway.

llvm-svn: 177233

llvm/tools/CMakeLists.txt

index 4cf5aa5..5e95604 100644 (file)
@@ -49,7 +49,8 @@ endif()
 
 if( LLVM_ENABLE_PIC )
   # TODO: support other systems:
-  if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+  if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+      OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
     add_subdirectory(gold)
   endif()
 endif()