[Mlir-commits] [mlir] 1c4d9ae - [mlir][ExecutionEngine] Fix native dependencies for AsmParser and Printer

Nicolas Vasilache llvmlistbot at llvm.org
Mon Dec 13 13:13:53 PST 2021


Author: Nicolas Vasilache
Date: 2021-12-13T21:12:12Z
New Revision: 1c4d9ae83dbbefb5773a5467052e3d398ed28452

URL: https://github.com/llvm/llvm-project/commit/1c4d9ae83dbbefb5773a5467052e3d398ed28452
DIFF: https://github.com/llvm/llvm-project/commit/1c4d9ae83dbbefb5773a5467052e3d398ed28452.diff

LOG: [mlir][ExecutionEngine] Fix native dependencies for AsmParser and Printer

This is a post-commit fix for https://reviews.llvm.org/D114338 which was landed as
https://reviews.llvm.org/rG050cc1cd6e6882eadba6e5ea7b588ca0b8aa1b12

Differential Revision: https://reviews.llvm.org/D115666

Added: 
    

Modified: 
    mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
    mlir/lib/ExecutionEngine/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt b/mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
index 48f45f8c06f11..105ce24dd134f 100644
--- a/mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
+++ b/mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
@@ -1,3 +1,8 @@
+set(LLVM_LINK_COMPONENTS
+  nativecodegen
+  native
+)
+  
 # Main API shared library.
 add_mlir_upstream_c_api_library(MLIRCAPIExecutionEngine
   ExecutionEngine.cpp

diff  --git a/mlir/lib/ExecutionEngine/CMakeLists.txt b/mlir/lib/ExecutionEngine/CMakeLists.txt
index 2264e91d2fa01..c52837c2e9ad9 100644
--- a/mlir/lib/ExecutionEngine/CMakeLists.txt
+++ b/mlir/lib/ExecutionEngine/CMakeLists.txt
@@ -26,7 +26,6 @@ add_mlir_library(MLIRExecutionEngine
   intrinsics_gen
 
   LINK_COMPONENTS
-  ${LLVM_NATIVE_ARCH}AsmParser
   Core
   Coroutines
   ExecutionEngine


        


More information about the Mlir-commits mailing list