[clang] 481f2e9 - [CIR] Extract DynLib build/link fixes from #221291 (#232330)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 15 08:04:16 PDT 2026
Author: Erich Keane
Date: 2026-10-15T08:04:08-07:00
New Revision: 481f2e9277ef3a53d65f09a7b6d92eeda2409df7
URL: https://github.com/llvm/llvm-project/commit/481f2e9277ef3a53d65f09a7b6d92eeda2409df7
DIFF: https://github.com/llvm/llvm-project/commit/481f2e9277ef3a53d65f09a7b6d92eeda2409df7.diff
LOG: [CIR] Extract DynLib build/link fixes from #221291 (#232330)
The review from #221291 finally got me to see that we failed a few
things with Dynlib. This extracts the changes from that review so that
they are separate from the main one, so we can merge that patch with
this on main eventually.
Added:
Modified:
clang/lib/CIR/Dialect/Transforms/CMakeLists.txt
clang/tools/cir-opt/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/lib/CIR/Dialect/Transforms/CMakeLists.txt b/clang/lib/CIR/Dialect/Transforms/CMakeLists.txt
index 2d6d04fb24abc5..614f3608352426 100644
--- a/clang/lib/CIR/Dialect/Transforms/CMakeLists.txt
+++ b/clang/lib/CIR/Dialect/Transforms/CMakeLists.txt
@@ -19,10 +19,12 @@ add_clang_library(MLIRCIRTransforms
DEPENDS
MLIRCIRPassIncGen
+ LINK_COMPONENTS
+ ABI
+
LINK_LIBS PUBLIC
clangBasic
- LLVMABI
MLIRABI
MLIRAnalysis
MLIRDLTIDialect
diff --git a/clang/tools/cir-opt/CMakeLists.txt b/clang/tools/cir-opt/CMakeLists.txt
index 9257bb80f978ef..40304dd4a114e4 100644
--- a/clang/tools/cir-opt/CMakeLists.txt
+++ b/clang/tools/cir-opt/CMakeLists.txt
@@ -20,11 +20,11 @@ clang_target_link_libraries(cir-opt
CIRRegisterAllDialects
MLIRCIR
MLIRCIRTransforms
- ${cir_opt_test_libs}
)
target_link_libraries(cir-opt
PRIVATE
+ ${cir_opt_test_libs}
MLIRAnalysis
MLIRDialect
MLIRIR
More information about the cfe-commits
mailing list