|
1 | 1 | # This file sets up a CMakeCache for a Fuchsia toolchain build.
|
2 | 2 |
|
| 3 | +option(FUCHSIA_USE_MULTIPLE_DISTRIBUTIONS "Use multiple distributions") |
| 4 | +option(FUCHSIA_ENABLE_LLDB "Enable LLDB") |
| 5 | + |
3 | 6 | set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64;RISCV CACHE STRING "")
|
4 | 7 |
|
5 | 8 | set(PACKAGE_VENDOR Fuchsia CACHE STRING "")
|
@@ -33,6 +36,7 @@ set(_FUCHSIA_BOOTSTRAP_PASSTHROUGH
|
33 | 36 | CURL_ROOT
|
34 | 37 | OpenSSL_ROOT
|
35 | 38 | FUCHSIA_ENABLE_LLDB
|
| 39 | + FUCHSIA_USE_MULTIPLE_DISTRIBUTIONS |
36 | 40 | LLDB_ENABLE_CURSES
|
37 | 41 | LLDB_ENABLE_LIBEDIT
|
38 | 42 | CMAKE_FIND_PACKAGE_PREFER_CONFIG
|
@@ -156,17 +160,33 @@ set(_FUCHSIA_BOOTSTRAP_TARGETS
|
156 | 160 | llvm-test-depends
|
157 | 161 | test-suite
|
158 | 162 | test-depends
|
159 |
| - distribution |
160 |
| - install-distribution |
161 |
| - install-distribution-stripped |
162 |
| - install-distribution-toolchain |
163 | 163 | clang)
|
164 | 164 |
|
165 |
| -set(FUCHSIA_ENABLE_LLDB OFF CACHE BOOL "Enable LLDB") |
| 165 | +if(FUCHSIA_USE_MULTIPLE_DISTRIBUTIONS) |
| 166 | + list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS |
| 167 | + toolchain-distribution |
| 168 | + install-toolchain-distribution |
| 169 | + install-toolchain-distribution-stripped |
| 170 | + install-toolchain-distribution-toolchain) |
| 171 | +else() |
| 172 | + list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS |
| 173 | + distribution |
| 174 | + install-distribution |
| 175 | + install-distribution-stripped |
| 176 | + install-distribution-toolchain) |
| 177 | +endif() |
| 178 | + |
166 | 179 | if(FUCHSIA_ENABLE_LLDB)
|
167 | 180 | list(APPEND _FUCHSIA_ENABLE_PROJECTS lldb)
|
168 |
| - list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS check-lldb lldb-test-depends) |
| 181 | + list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS |
| 182 | + check-lldb |
| 183 | + lldb-test-depends |
| 184 | + debugger-distribution |
| 185 | + install-debugger-distribution |
| 186 | + install-debugger-distribution-stripped |
| 187 | + install-debugger-distribution-toolchain) |
169 | 188 | endif()
|
| 189 | + |
170 | 190 | set(LLVM_ENABLE_PROJECTS ${_FUCHSIA_ENABLE_PROJECTS} CACHE STRING "")
|
171 | 191 | set(CLANG_BOOTSTRAP_TARGETS ${_FUCHSIA_BOOTSTRAP_TARGETS} CACHE STRING "")
|
172 | 192 |
|
|
0 commit comments