[Mlir-commits] [mlir] ccdcfad - [mlir-cpu-runner] Add export_executable_symbols in CMake.
Andrzej Warzynski
llvmlistbot at llvm.org
Tue Mar 28 09:22:22 PDT 2023
Author: Andrzej Warzynski
Date: 2023-03-28T16:21:41Z
New Revision: ccdcfad0815296d8952438632d9abe6bc0a5258a
URL: https://github.com/llvm/llvm-project/commit/ccdcfad0815296d8952438632d9abe6bc0a5258a
DIFF: https://github.com/llvm/llvm-project/commit/ccdcfad0815296d8952438632d9abe6bc0a5258a.diff
LOG: [mlir-cpu-runner] Add export_executable_symbols in CMake.
LLJIT needs access to symbols (e.g. llvm_orc_registerEHFrameSectionWrapper)
that will be defined in the executable when LLVM is linked statically.
This change is consistent with how other tools within LLVM use LLJIT. It
is required to make sure that `mlir-cpu-runner --host-supports-jit`
correctly returns `true` on platforms that do support JITting (in my
case that's AArch64 Linux).
See https://github.com/llvm/llvm-project/issues/61712 for more context.
Differential Revision: https://reviews.llvm.org/D146935
Added:
Modified:
mlir/tools/mlir-cpu-runner/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/tools/mlir-cpu-runner/CMakeLists.txt b/mlir/tools/mlir-cpu-runner/CMakeLists.txt
index c2ab62ee93a5e..1766b28aa0b11 100644
--- a/mlir/tools/mlir-cpu-runner/CMakeLists.txt
+++ b/mlir/tools/mlir-cpu-runner/CMakeLists.txt
@@ -22,3 +22,5 @@ target_link_libraries(mlir-cpu-runner PRIVATE
MLIRTargetLLVMIRExport
MLIRSupport
)
+
+export_executable_symbols(mlir-cpu-runner)
More information about the Mlir-commits
mailing list