From cf80a1aee566316113c79d42bd0ed858981b7bc4 Mon Sep 17 00:00:00 2001 From: Vincent Wells Date: Wed, 18 Dec 2024 08:52:19 -0600 Subject: [PATCH] Fix ttmlir-(opt/translate) linking to llvm dylib (again) (#1621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I seem to have accidentally changed `DMLIR_LINK_MLIR_DYLIB` instead of `DLLVM_LINK_LLVM_DYLIB` last time 🤦 And must not have properly cleared all build files when I tested, s.t. it picked up manual fix previously with correct variable change. Correcting here--planning to leave change to `DMLIR_LINK_MLIR_DYLIB=OFF` too, for symmetry --- env/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/CMakeLists.txt b/env/CMakeLists.txt index 1e26e8ca4..eeb0aea8e 100644 --- a/env/CMakeLists.txt +++ b/env/CMakeLists.txt @@ -52,7 +52,7 @@ ExternalProject_Add( -DLLVM_ENABLE_PIC=ON -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_INSTALL_GTEST=ON - -DLLVM_LINK_LLVM_DYLIB=ON + -DLLVM_LINK_LLVM_DYLIB=OFF -DMLIR_BUILD_MLIR_C_DYLIB=ON -DMLIR_LINK_MLIR_DYLIB=OFF -DMLIR_BUILD_MLIR_C_DYLIB=ON