Skip to content

Commit

Permalink
[SPIR-V][NFC] Fix for building llvm-spirv with -DLLVM_LINK_LLVM_DYLIB…
Browse files Browse the repository at this point in the history
…=ON (#1323)

Explicitly link llvm-spirv with the libLLVMSPIRVLib.a static library even if
building LLVM/clang with -DLLVM_LINK_LLVM_DYLIB=ON .

Signed-off-by: Andrea Bocci <andrea.bocci@cern.ch>
  • Loading branch information
fwyzard authored Mar 18, 2020
1 parent 5aad2e3 commit 19dc07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm-spirv/tools/llvm-spirv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ add_llvm_tool(llvm-spirv
NO_INSTALL_RPATH
)

if (LLVM_SPIRV_BUILD_EXTERNAL)
if (LLVM_SPIRV_BUILD_EXTERNAL OR LLVM_LINK_LLVM_DYLIB)
target_link_libraries(llvm-spirv PRIVATE LLVMSPIRVLib)
endif()

Expand Down

0 comments on commit 19dc07b

Please sign in to comment.