LLVM_ENABLE_PROJECTS is automatically forwarded from stage 1 builds to
stage 2 builds, so setting FUCHSIA_ENABLE_LLDB has no effect on
two-stage builds.
Instead, add FUCHSIA_ENABLE_LLDB to the stage one build as well.
This also disables curses and libedit by default for now in both stage1
and stage 2 builds; these should be opt-in.
You probably need a string(REPLACE ";" "|" value "${_FUCHSIA_ENABLE_PROJECTS}") after append a value. As by default cmake use | to separate items.
But do you actually need a _FUCHSIA_ENABLE_PROJECTS variable, couldn't you just append lldb at the end of LLVM_ENABLE_PROJECTS here?