Skip to content

Commit

Permalink
[llvm] build libMLIR (but don't link)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Dec 27, 2024
1 parent b5458f6 commit 24ca278
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_tools/cmake/llvm_cache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ set(LLVM_INCLUDE_TOOLS ON CACHE BOOL "")
set(LLVM_INSTALL_UTILS ON CACHE BOOL "")

# All the tools will use libllvm shared library
set(LLVM_BUILD_LLVM_DYLIB ON CACHE BOOL "")
# (but doesn't work on windows)
if (NOT WIN32)
set(LLVM_BUILD_LLVM_DYLIB ON CACHE BOOL "")
set(LLVM_LINK_LLVM_DYLIB ON CACHE BOOL "")
endif()
set(MLIR_LINK_MLIR_DYLIB OFF CACHE BOOL "")

# useful things
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
Expand Down Expand Up @@ -117,7 +118,7 @@ set(LLVM_MlirDevelopment_DISTRIBUTION_COMPONENTS
CACHE STRING "")

if (NOT WIN32)
list(APPEND LLVM_MlirDevelopment_DISTRIBUTION_COMPONENTS LLVM)
list(APPEND LLVM_MlirDevelopment_DISTRIBUTION_COMPONENTS LLVM MLIR)
endif()

get_cmake_property(_variableNames VARIABLES)
Expand Down

0 comments on commit 24ca278

Please sign in to comment.