Skip to content

Commit

Permalink
[llvm] build clang too (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Dec 20, 2024
1 parent 3b67753 commit f0a5f4e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ jobs:
with:
artifacts: "*.tar.gz"
token: "${{ secrets.GITHUB_TOKEN }}"
tag: "latest"
name: "latest"
tag: "llvm"
name: "llvm"
removeArtifacts: false
allowUpdates: true
replacesArtifacts: true
Expand Down
71 changes: 49 additions & 22 deletions build_tools/cmake/llvm_cache.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(LLVM_ENABLE_PROJECTS "llvm;mlir" CACHE STRING "")
set(LLVM_ENABLE_PROJECTS "llvm;mlir;clang" CACHE STRING "")

# LLVM options

Expand All @@ -18,7 +18,6 @@ endif()
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
set(LLVM_ENABLE_WARNINGS ON CACHE BOOL "")
set(LLVM_FORCE_ENABLE_STATS ON CACHE BOOL "")
set(LLVM_ENABLE_RTTI ON CACHE BOOL "")

# MLIR options

Expand Down Expand Up @@ -64,26 +63,54 @@ set(LLVM_INSTALL_TOOLCHAIN_ONLY OFF CACHE BOOL "")

set(LLVM_DISTRIBUTIONS MlirDevelopment CACHE STRING "")
set(LLVM_MlirDevelopment_DISTRIBUTION_COMPONENTS
llvm-config
llvm-headers
llvm-libraries
cmake-exports
FileCheck
not
MLIRPythonModules
# triggers LLVMMlirDevelopmentExports.cmake
mlirdevelopment-cmake-exports
# triggers MLIRMlirDevelopmentTargets.cmake
mlir-mlirdevelopment-cmake-exports
# triggers MLIRConfig.cmake and etc
mlir-cmake-exports
mlir-headers
mlir-libraries
mlir-opt
mlir-python-sources
mlir-reduce
mlir-tblgen
mlir-translate
clangAPINotes
clangAST
clangASTMatchers
clangAnalysis
clangBasic
clangDriver
clangDriver
clangEdit
clangFormat
clangFrontend
clangLex
clangParse
clangRewrite
clangSema
clangSerialization
clangSupport
clangTooling
clangToolingCore
clangToolingInclusions

clang-headers
# triggers ClangConfig.cmake and etc
clang-cmake-exports
# triggers ClangMlirDevelopmentTargets.cmake
clang-mlirdevelopment-cmake-exports

# triggers ClangConfig.cmake and etc
cmake-exports
# triggers LLVMMlirDevelopmentExports.cmake
mlirdevelopment-cmake-exports
llvm-config
llvm-headers
llvm-libraries

FileCheck
not
MLIRPythonModules
# triggers MLIRMlirDevelopmentTargets.cmake
mlir-mlirdevelopment-cmake-exports
# triggers MLIRConfig.cmake and etc
mlir-cmake-exports
mlir-headers
mlir-libraries
mlir-opt
mlir-python-sources
mlir-reduce
mlir-tblgen
mlir-translate
CACHE STRING "")

if (NOT WIN32)
Expand Down

0 comments on commit f0a5f4e

Please sign in to comment.