File tree Expand file tree Collapse file tree 4 files changed +3
-13
lines changed Expand file tree Collapse file tree 4 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,9 @@ endfunction()
305
305
# EXCLUDE_FROM_LIBMLIR
306
306
# Don't include this library in libMLIR.so. This option should be used
307
307
# for test libraries, executable-specific libraries, or rarely used libraries
308
- # with large dependencies.
308
+ # with large dependencies. When using it, please link libraries included
309
+ # in libMLIR via mlir_target_link_libraries(), to ensure that the library
310
+ # does not pull in static dependencies when MLIR_LINK_MLIR_DYLIB=ON is used.
309
311
# OBJECT
310
312
# The library's object library is referenced using "obj.${name}". For this to
311
313
# work reliably, this flag ensures that the OBJECT library exists.
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ add_mlir_library(MLIRTestAnalysis
23
23
LINK_LIBS PUBLIC
24
24
MLIRTestDialect
25
25
)
26
-
27
- # Since this library is excluded from libMLIR, link it to the dylib
28
- # to ensure that it can be used in flang without implicitly pulling in
29
- # static libraries.
30
26
mlir_target_link_libraries (MLIRTestAnalysis PUBLIC
31
27
MLIRAffineDialect
32
28
MLIRAnalysis
Original file line number Diff line number Diff line change @@ -69,10 +69,6 @@ add_mlir_library(MLIRTestDialect
69
69
MLIRTestOpsSyntaxIncGen
70
70
MLIRTestOpsShardGen
71
71
)
72
-
73
- # Since this library is excluded from libMLIR, link it to the dylib
74
- # to ensure that it can be used in flang without implicitly pulling in
75
- # static libraries.
76
72
mlir_target_link_libraries (MLIRTestDialect PUBLIC
77
73
MLIRControlFlowInterfaces
78
74
MLIRDataLayoutInterfaces
Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ add_mlir_library(MLIRTestIR
28
28
29
29
EXCLUDE_FROM_LIBMLIR
30
30
)
31
-
32
- # Since this library is excluded from libMLIR, link it to the dylib
33
- # to ensure that it can be used in flang without implicitly pulling in
34
- # static libraries.
35
31
mlir_target_link_libraries (MLIRTestIR PUBLIC
36
32
MLIRPass
37
33
MLIRBytecodeReader
You can’t perform that action at this time.
0 commit comments