File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ set(SRC_LIST
40
40
libSPIRV/SPIRVValue.cpp
41
41
libSPIRV/SPIRVError.cpp
42
42
)
43
- add_llvm_library (LLVMSPIRVLib
44
- ${SRC_LIST}
45
- LINK_COMPONENTS
43
+
44
+ set (SPIRVLIB_LINK_COMPONENTS
46
45
Analysis
47
46
BitWriter
48
47
CodeGen
@@ -54,6 +53,16 @@ add_llvm_library(LLVMSPIRVLib
54
53
Support
55
54
TargetParser
56
55
TransformUtils
56
+ )
57
+
58
+ if (SPIRV_BACKEND_FOUND )
59
+ list (APPEND SPIRVLIB_LINK_COMPONENTS "SPIRVCodeGen" )
60
+ endif ()
61
+
62
+ add_llvm_library (LLVMSPIRVLib
63
+ ${SRC_LIST}
64
+ LINK_COMPONENTS
65
+ ${SPIRVLIB_LINK_COMPONENTS}
57
66
DEPENDS
58
67
intrinsics_gen
59
68
)
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ set(LLVM_LINK_COMPONENTS
10
10
TransformUtils
11
11
)
12
12
13
- if (SPIRV_BACKEND_FOUND )
14
- list (APPEND LLVM_LINK_COMPONENTS "SPIRVCodeGen" )
15
- endif ()
16
-
17
13
# llvm_setup_rpath messes with the rpath making llvm-spirv not
18
14
# executable from the build directory in out-of-tree builds
19
15
set (add_llvm_tool_options )
You can’t perform that action at this time.
0 commit comments