mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 15:40:32 -04:00
llbuild is a set of libraries for building build systems. Unlike most build system projects which focus on the syntax for describing the build, llbuild is designed around a reusable, flexible, and scalable general purpose build engine capable of solving many "build system"-like problems. The project also includes additional libraries on top of that engine which provide support for constructing bespoke build systems (like swift build) or for building from Ninja manifests. WWW: https://github.com/apple/switch-llbuild Approved by: mat Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D8439
27 lines
1,001 B
Text
27 lines
1,001 B
Text
--- CMakeLists.txt.orig 2016-10-20 04:49:37 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -112,6 +112,13 @@ endif()
|
|
include_directories(BEFORE
|
|
${CMAKE_SOURCE_DIR}/include)
|
|
|
|
+# On FreeBSD, /usr/local/* is not used by default. In order to build LLVM
|
|
+# with sqlite3, etc., we must add /usr/local paths.
|
|
+if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
|
|
+ include_directories("/usr/local/include")
|
|
+ link_directories("/usr/local/lib")
|
|
+endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
|
|
+
|
|
# Xcode: Use libc++ and c++14 using proper build settings.
|
|
if (XCODE)
|
|
# Force usage of Clang.
|
|
@@ -170,8 +177,8 @@ else ()
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor")
|
|
endif ()
|
|
|
|
-# On Linux, always build with PIC.
|
|
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
+# On BSD and Linux, always build with PIC.
|
|
+if(${CMAKE_SYSTEM_NAME} MATCHES ".*BSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
|
endif ()
|