You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix build when linking against SPIRVLib with SPIR-V backend support enabled (#3274)
When building with SPIR-V backend support, naturally we need to link
against the SPIR-V backend. Currently this is done as part of the tool
(`llvm-spirv`)'s CMake dependencies, instead of `SPIRVLib` which is the
actual CMake target that requires the SPIR-V backend
(`SPIRVTranslateModule` call inside `SPIRVWriter.cpp`).
This causes a linker error if someone depends on `SPIRVLib` directly and
doesn't depend on `llvm-spirv`.
Move the dependency from the tool to the lib.
Signed-off-by: Sarnie, Nick <[email protected]>
Original commit:
KhronosGroup/SPIRV-LLVM-Translator@10c7569b3c4cb45
0 commit comments