-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,23 @@ | ||
# This file sets up a CMakeCache for the llvm build for rift | ||
|
||
set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "") | ||
set(LLVM_ENABLE_RUNTIMES "libc" CACHE STRING "") | ||
set(LLVM_TARGETS_TO_BUILD "X86;ARM;AArch64;RISCV" CACHE STRING "") | ||
|
||
set(LLVM_INSTALL_TOOLCHAIN_ONLY OFF CACHE BOOL "") | ||
|
||
#set(LLVM_DISTRIBUTION_COMPONENTS | ||
# clang | ||
# builtins | ||
# runtimes | ||
# CACHE STRING "") | ||
set(LLVM_ENABLE_PROJECTS clang lld CACHE STRING "") | ||
# set(LLVM_ENABLE_RUNTIMES libc CACHE STRING "") | ||
set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 RISCV CACHE STRING "") | ||
|
||
# https://www.llvm.org/docs/CMake.html#llvm-related-variables | ||
set(LLVM_BUILD_TOOLS OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_BINDINGS OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_OCAMLDOC OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_LIBXML2 OFF CACHE BOOL "") | ||
if (NOT APPLE) | ||
set(LLVM_ENABLE_LLD ON CACHE BOOL "") | ||
endif() | ||
set(LLVM_ENABLE_LLD OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_WARNINGS OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_Z3_SOLVER OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_BENCHMARKS OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_GO_TESTS OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "") | ||
set(LLVM_INCLUDE_TOOLS ON CACHE BOOL "") | ||
set(LLVM_INCLUDE_UTILS OFF CACHE BOOL "") | ||
set(CLANG_BUILD_TOOLS OFF CACHE BOOL "") | ||
|
||
|
||
# -DLLVM_INCLUDE_TOOLS=ON \ | ||
# -DLLVM_BUILD_TOOLS=ON \ | ||
# -DLLVM_USE_CRT_RELEASE=MD \ | ||
# -DLLVM_USE_CRT_DEBUG=MDd | ||
set(CLANG_BUILD_DOCS OFF CACHE BOOL "") |