File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
# BOOTSTRAP_* options configure the second build.
3
3
# BOOTSTRAP_BOOTSTRAP_* options configure the third build.
4
4
5
+ # General Options
6
+ set (LLVM_RELEASE_ENABLE_LTO THIN CACHE STRING "" )
7
+
5
8
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING "" )
6
9
7
10
# Stage 1 Bootstrap Setup
@@ -33,9 +36,17 @@ set(BOOTSTRAP_CLANG_BOOTSTRAP_TARGETS
33
36
check-clang CACHE STRING "" )
34
37
35
38
# Stage 2 Options
36
- set (BOOTSTRAP_LLVM_ENABLE_PROJECTS "clang" CACHE STRING "" )
39
+ set (STAGE2_PROJECTS "clang" )
40
+ if (LLVM_RELEASE_ENABLE_LTO)
41
+ list (APPEND STAGE2_PROJECTS "lld" )
42
+ endif ()
43
+ set (BOOTSTRAP_LLVM_ENABLE_PROJECTS ${STAGE2_PROJECTS} CACHE STRING "" )
37
44
set (BOOTSTRAP_LLVM_TARGETS_TO_BUILD Native CACHE STRING "" )
38
45
39
46
# Stage 3 Options
40
47
set (BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "" )
41
48
set (BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_PROJECTS "clang;lld;lldb;clang-tools-extra;bolt;polly;mlir;flang" CACHE STRING "" )
49
+ set (BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LTO ${LLVM_RELEASE_ENABLE_LTO} CACHE STRING "" )
50
+ if (LLVM_RELEASE_ENABLE_LTO)
51
+ set (BOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "" )
52
+ endif ()
You can’t perform that action at this time.
0 commit comments