diff --git a/mlir/tools/mlir-cpu-runner/CMakeLists.txt b/mlir/tools/mlir-cpu-runner/CMakeLists.txt index 811583b97bc71..580bb16849726 100644 --- a/mlir/tools/mlir-cpu-runner/CMakeLists.txt +++ b/mlir/tools/mlir-cpu-runner/CMakeLists.txt @@ -26,3 +26,15 @@ target_link_libraries(mlir-cpu-runner PRIVATE MLIRExecutionEngine MLIRJitRunner ) + +# Preventing re-export of symbols causes link errors with ASan and UBSan libs. +# AMD: Disabled as it causes passed to not be registered +#if (NOT LLVM_USE_SANITIZER) +# target_link_options(mlir-cpu-runner +# PRIVATE +# # On Linux, disable re-export of any static linked libraries that came +# # through. This prevents our LLVM build from interfering with the version +# # of LLVM included in certain graphics drivers. +# $<$:LINKER:--exclude-libs,ALL> +# ) +#endif()