File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,7 @@ set(MLIR_INSTALL_AGGREGATE_OBJECTS 1 CACHE BOOL
157
157
158
158
set (MLIR_BUILD_MLIR_C_DYLIB 0 CACHE BOOL "Builds libMLIR-C shared library." )
159
159
160
- # AMD: Disabled, causes options to be registered multiple times
161
- set (MLIR_LINK_MLIR_DYLIB OFF CACHE BOOL
160
+ set (MLIR_LINK_MLIR_DYLIB ${LLVM_LINK_LLVM_DYLIB} CACHE BOOL
162
161
"Link tools against libMLIR.so" )
163
162
164
163
configure_file (
Original file line number Diff line number Diff line change @@ -732,7 +732,8 @@ function(mlir_target_link_libraries target type)
732
732
endif ()
733
733
734
734
if (MLIR_LINK_MLIR_DYLIB )
735
- target_link_libraries (${target} ${type} MLIR )
735
+ # AMD: Do not link shared, as this casues linking errors
736
+ target_link_libraries (${target} ${type} ${ARGN} )
736
737
else ()
737
738
target_link_libraries (${target} ${type} ${ARGN} )
738
739
endif ()
You can’t perform that action at this time.
0 commit comments