File tree Expand file tree Collapse file tree 1 file changed +34
-13
lines changed Expand file tree Collapse file tree 1 file changed +34
-13
lines changed Original file line number Diff line number Diff line change 1
- add_llvm_library ( LLVMSPIRVLib
1
+ set ( SRC_LIST
2
2
LLVMSPIRVOpts.cpp
3
3
LLVMToSPIRVDbgTran.cpp
4
4
Mangler/FunctionDescriptor.cpp
@@ -36,20 +36,41 @@ add_llvm_library(LLVMSPIRVLib
36
36
libSPIRV/SPIRVStream.cpp
37
37
libSPIRV/SPIRVType.cpp
38
38
libSPIRV/SPIRVValue.cpp
39
- LINK_COMPONENTS
40
- Analysis
41
- BitWriter
42
- CodeGen
43
- Core
44
- Demangle
45
- IRReader
46
- Linker
47
- Passes
48
- Support
49
- TransformUtils
39
+ )
40
+ if (LLVM_LINK_LLVM_DYLIB )
41
+ add_llvm_library (LLVMSPIRVLib STATIC DISABLE_LLVM_LINK_LLVM_DYLIB
42
+ ${SRC_LIST}
43
+ DEPENDS
44
+ intrinsics_gen
45
+ LLVMAnalysis
46
+ LLVMBitWriter
47
+ LLVMCodeGen
48
+ LLVMCore
49
+ LLVMDemangle
50
+ LLVMIRReader
51
+ LLVMLinker
52
+ LLVMPasses
53
+ LLVMSupport
54
+ LLVMTransformUtils
55
+ )
56
+ else ()
57
+ add_llvm_library (LLVMSPIRVLib
58
+ ${SRC_LIST}
59
+ LINK_COMPONENTS
60
+ Analysis
61
+ BitWriter
62
+ CodeGen
63
+ Core
64
+ Demangle
65
+ IRReader
66
+ Linker
67
+ Passes
68
+ Support
69
+ TransformUtils
50
70
DEPENDS
51
71
intrinsics_gen
52
- )
72
+ )
73
+ endif ()
53
74
54
75
target_include_directories (LLVMSPIRVLib
55
76
PRIVATE
You can’t perform that action at this time.
0 commit comments