When building Swift toolchain with libcxx, libcxxabi should also be installed #80112
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Ref:
swift/utils/build-script-impl
Line 2876 in c28279f
There are four install components:
install-libcxx
install-libcxx-headers
install-libcxxabi
install-libcxxabi-headers
From my understanding here is the "official" Swift Toolchain on Darwin doesn't provide any libcxx stuff, presumably they're compiled with
build-toolchain-only
?However in our downstream, we patch
llvm-install-components
in the preset to inject the full suite of LLVM tools like llvm-lto that we need in our customer's build pipeline.In this case,
build-toolchain-only
is not a viable option since it seems it skips the target generation of llvm tools completely. But if we build "normally" with the fullchain suite, yes, libcxx is installed, but not libcxxabi (headers), this results in (rare) projects that actually useslibcxxabi.h
unable to build with this toolchainReproduction
Build the full swift toolchain, we use our own preset based on:
Expected behavior
Both libcxx and libcxxabi are installed
Environment
This was found on a local build Swift 5.9.2, but it seems relevant issues still persist in ToT
Additional information
No response
The text was updated successfully, but these errors were encountered: