[Mlir-commits] [mlir] e582865 - [mlir] Link MLIRMlirOptMain against test_libs

Nikita Popov llvmlistbot at llvm.org
Thu Dec 12 06:12:55 PST 2024


Author: Nikita Popov
Date: 2024-12-12T15:12:45+01:00
New Revision: e582865aa46b6b46d8c7e8a9244443247f5f173b

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

LOG: [mlir] Link MLIRMlirOptMain against test_libs

In 10ef20f6a629797d81252de143117e2a0bc6556d I dropped $test_libs
from $LIBS to handle them separately for the mlir-opt tool.
However, they should still include them in LINK_LIBS for the
MLIRMlirOptMain library.

Added: 
    

Modified: 
    mlir/tools/mlir-opt/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-opt/CMakeLists.txt b/mlir/tools/mlir-opt/CMakeLists.txt
index 71ab67d94ef91f..3563d66fa9e798 100644
--- a/mlir/tools/mlir-opt/CMakeLists.txt
+++ b/mlir/tools/mlir-opt/CMakeLists.txt
@@ -94,6 +94,7 @@ add_mlir_library(MLIRMlirOptMain
 
   LINK_LIBS PUBLIC
   ${LIBS}
+  ${test_libs}
   )
 
 add_mlir_tool(mlir-opt


        


More information about the Mlir-commits mailing list