Commit 32a7dcdc by Nicolas Capens Committed by Nicolas Capens

Don't needlessly build LLVM

If the Reactor backend is Subzero, there's no need to build LLVM. This is accomplished by excluding the LLVM target from the "all" target. Bug: b/151250656 Change-Id: I26dc44921cc44d379c619700c6dd03f6fe94ee27 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/42229 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent 7e366320
...@@ -1535,7 +1535,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") ...@@ -1535,7 +1535,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
) )
endif() endif()
add_library(llvm STATIC ${LLVM_LIST}) add_library(llvm STATIC EXCLUDE_FROM_ALL ${LLVM_LIST})
set_target_properties(llvm PROPERTIES set_target_properties(llvm PROPERTIES
POSITION_INDEPENDENT_CODE 1 POSITION_INDEPENDENT_CODE 1
INCLUDE_DIRECTORIES "${LLVM_INCLUDE_DIR}" INCLUDE_DIRECTORIES "${LLVM_INCLUDE_DIR}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment