mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
CMake: Add a new configuration option LLVM_BUILD_CLANG that's
available when Clang is found within the LLVM tree. If enabled (the default), Clang will be built as part of LLVM. If disabled, Clang will be skipped... and can be built by configuring a separate object directory just for Clang. This helps break up the monolithic LLVM+Clang project that many Clang developers use, improving build/load times. llvm-svn: 135218
This commit is contained in:
parent
fb25bf95c9
commit
96d0322a5c
@ -59,7 +59,10 @@ if( LLVM_ENABLE_PIC )
|
||||
endif()
|
||||
|
||||
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
|
||||
add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang )
|
||||
option(LLVM_BUILD_CLANG "Whether to build Clang as part of LLVM" ON)
|
||||
if (${LLVM_BUILD_CLANG})
|
||||
add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang )
|
||||
endif()
|
||||
endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
|
||||
|
||||
set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user