That commit (D132324) made putting libc++ in LLVM_ENABLE_RUNTIMES a hard
error, but ther are some out-of-tree CI jobs (especially docs that need
fixing).

I am thus making it a "soft error" for now, until that is resolved.
This commit is contained in:
John Ericson 2022-08-21 08:57:01 -04:00
parent 53c0be28a7
commit 952f90b72b

View File

@ -123,7 +123,9 @@ foreach(proj ${LLVM_ENABLE_PROJECTS})
endforeach() endforeach()
foreach(proj "libcxx" "libcxxabi" "libunwind") foreach(proj "libcxx" "libcxxabi" "libunwind")
if (${proj} IN_LIST LLVM_ENABLE_PROJECTS) if (${proj} IN_LIST LLVM_ENABLE_PROJECTS)
message(FATAL_ERROR # TODO(Ericson2314): Making non-fatal for now because of out-of-tree docs
# CI jobs use this.
message(SEND_ERROR
"Using LLVM_ENABLE_PROJECTS=${proj} is incorrect. Please use -DLLVM_ENABLE_RUNTIMES=${proj} or " "Using LLVM_ENABLE_PROJECTS=${proj} is incorrect. Please use -DLLVM_ENABLE_RUNTIMES=${proj} or "
"see the instructions at https://libcxx.llvm.org/BuildingLibcxx.html for building the runtimes.") "see the instructions at https://libcxx.llvm.org/BuildingLibcxx.html for building the runtimes.")
endif() endif()