From a5cc1fdd5f6a2a882f02f997ae192bbafe262686 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 2 Oct 2024 11:24:31 -0400 Subject: [PATCH] link-components Signed-off-by: Benoit Jacob --- stablehlo/integrations/c/CMakeLists.txt | 6 +++++- stablehlo/reference/CMakeLists.txt | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stablehlo/integrations/c/CMakeLists.txt b/stablehlo/integrations/c/CMakeLists.txt index 74595438aa3..c690192ecfb 100644 --- a/stablehlo/integrations/c/CMakeLists.txt +++ b/stablehlo/integrations/c/CMakeLists.txt @@ -28,6 +28,8 @@ add_mlir_public_c_api_library(ChloCAPI LINK_LIBS PUBLIC ChloOps + + LINK_COMPONENTS PUBLIC LLVMSupport ) @@ -40,7 +42,6 @@ add_mlir_public_c_api_library(StablehloCAPI StablehloTypes.cpp LINK_LIBS PUBLIC - LLVMSupport MLIRCAPIIR MLIRIR MLIRSupport @@ -51,6 +52,9 @@ add_mlir_public_c_api_library(StablehloCAPI StablehloReferenceConfiguration StablehloSerialization Version + + LINK_COMPONENTS PUBLIC + LLVMSupport ) add_mlir_public_c_api_library(VhloCAPI diff --git a/stablehlo/reference/CMakeLists.txt b/stablehlo/reference/CMakeLists.txt index b3a406b0af1..fb7d01639b1 100644 --- a/stablehlo/reference/CMakeLists.txt +++ b/stablehlo/reference/CMakeLists.txt @@ -169,10 +169,12 @@ add_mlir_library(StablehloReferenceProcessGrid ProcessGrid.cpp LINK_LIBS PUBLIC - LLVMSupport MLIRIR MLIRSupport StablehloReferenceTensor + + LINK_COMPONENTS PUBLIC + LLVMSupport ) add_mlir_library(StablehloReferenceScope