Skip to content

Commit 528b284

Browse files
committed
Do not link mlir-cpu-runner with '--exclude-libs' as this causes errors in the pass registration
1 parent 4aaee88 commit 528b284

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

mlir/tools/mlir-cpu-runner/CMakeLists.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ target_link_libraries(mlir-cpu-runner PRIVATE
2828
)
2929

3030
# Preventing re-export of symbols causes link errors with ASan and UBSan libs.
31-
if (NOT LLVM_USE_SANITIZER)
32-
target_link_options(mlir-cpu-runner
33-
PRIVATE
34-
# On Linux, disable re-export of any static linked libraries that came
35-
# through. This prevents our LLVM build from interfering with the version
36-
# of LLVM included in certain graphics drivers.
37-
$<$<PLATFORM_ID:Linux>:LINKER:--exclude-libs,ALL>
38-
)
39-
endif()
31+
# AMD: Disabled as it causes passed to not be registered
32+
#if (NOT LLVM_USE_SANITIZER)
33+
# target_link_options(mlir-cpu-runner
34+
# PRIVATE
35+
# # On Linux, disable re-export of any static linked libraries that came
36+
# # through. This prevents our LLVM build from interfering with the version
37+
# # of LLVM included in certain graphics drivers.
38+
# $<$<PLATFORM_ID:Linux>:LINKER:--exclude-libs,ALL>
39+
# )
40+
#endif()

0 commit comments

Comments
 (0)