We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d2f86f + 7402521 commit 4aaee88Copy full SHA for 4aaee88
mlir/tools/mlir-cpu-runner/CMakeLists.txt
@@ -26,3 +26,14 @@ target_link_libraries(mlir-cpu-runner PRIVATE
26
MLIRExecutionEngine
27
MLIRJitRunner
28
)
29
+
30
+# 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()
0 commit comments