Skip to content

Commit

Permalink
[Fuchsia] Add LLDB to CLANG_BOOTSTRAP_TARGETS.
Browse files Browse the repository at this point in the history
stage2-check-lldb should be run in a 2-stage build to test the final
LLDB artifact, so it and related targets must be exported to the stage 1
project.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D145818
  • Loading branch information
mysterymath committed Mar 10, 2023
1 parent a94083b commit 2998a55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/cmake/caches/Fuchsia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ endif()
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")

set(CLANG_BOOTSTRAP_TARGETS
set(_FUCHSIA_BOOTSTRAP_TARGETS
check-all
check-clang
check-lld
Expand All @@ -160,13 +160,15 @@ set(CLANG_BOOTSTRAP_TARGETS
install-distribution
install-distribution-stripped
install-distribution-toolchain
clang CACHE STRING "")
clang)

set(FUCHSIA_ENABLE_LLDB OFF CACHE BOOL "Enable LLDB")
if(FUCHSIA_ENABLE_LLDB)
list(APPEND _FUCHSIA_ENABLE_PROJECTS lldb)
list(APPEND _FUCHSIA_BOOTSTRAP_TARGETS check-lldb lldb-test-depends)
endif()
set(LLVM_ENABLE_PROJECTS ${_FUCHSIA_ENABLE_PROJECTS} CACHE STRING "")
set(CLANG_BOOTSTRAP_TARGETS ${_FUCHSIA_BOOTSTRAP_TARGETS} CACHE STRING "")

get_cmake_property(variableNames VARIABLES)
foreach(variableName ${variableNames})
Expand Down

0 comments on commit 2998a55

Please sign in to comment.