From: Stephen Neuendorffer Date: Sun, 17 May 2020 05:46:57 +0000 (-0700) Subject: [MLIR][cmake][NFC] Update linkage checker for mlir-opt X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f88c7fe46b37960599e15d373e6ebb0cb2efdc01;p=android-x86%2Fexternal-llvm-project.git [MLIR][cmake][NFC] Update linkage checker for mlir-opt New CMakeLists.txt for MLIRStandardOpsTransforms was incorrect, but wasn't caught by the check. Differential Revision: https://reviews.llvm.org/D80075 --- diff --git a/mlir/cmake/modules/AddMLIR.cmake b/mlir/cmake/modules/AddMLIR.cmake index b07158ba4d6..c6ef4682325 100644 --- a/mlir/cmake/modules/AddMLIR.cmake +++ b/mlir/cmake/modules/AddMLIR.cmake @@ -179,7 +179,7 @@ function(mlir_check_link_libraries name) # same symbol might be loaded from 2 separate libraries. This # often comes from referring to an LLVM library target # explicitly in target_link_libraries() - message("WARNING: ${l} links LLVM and ${lib}!") + message("WARNING: ${name} links LLVM and ${lib}!") endif() endif() endforeach() diff --git a/mlir/tools/mlir-opt/CMakeLists.txt b/mlir/tools/mlir-opt/CMakeLists.txt index 46e7ea69285..3e8ed0ebee7 100644 --- a/mlir/tools/mlir-opt/CMakeLists.txt +++ b/mlir/tools/mlir-opt/CMakeLists.txt @@ -52,4 +52,4 @@ add_llvm_tool(mlir-opt target_link_libraries(mlir-opt PRIVATE ${LIBS}) llvm_update_compile_flags(mlir-opt) -mlir_check_link_libraries(mlir-opt) +mlir_check_all_link_libraries(mlir-opt)