Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libcxx] [ci] Add a test configuration with an incomplete sysroot #107089

Merged
merged 1 commit into from
Sep 5, 2024

Commits on Sep 3, 2024

  1. [libcxx] [ci] Add a test configuration with an incomplete sysroot

    When bringing up a new cross compiler from scratch, we build
    libunwind/libcxx in a setup where the toolchain is incomplete and
    unable to perform the normal linker checks; this requires a few
    special cases in the CMake files.
    
    We simulate that scenario by removing the libc++ headers, libunwind
    and libc++ libraries from the installed toolchain.
    
    We need to set CMAKE_CXX_COMPILER_WORKS since CMake fails to
    probe the compiler. We need to set CMAKE_CXX_COMPILER_TARGET,
    since LLVM's heuristics fail when CMake hasn't been able to
    probe the environment properly. (This is normal; one has to
    set those options when setting up such a toolchain from scratch.)
    
    This adds CI coverage for these build scenarios, which otherwise
    seldom are tested by some build flow (but are essential when setting
    up a cross compiler from scratch).
    mstorsjo committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    bd4a80f View commit details
    Browse the repository at this point in the history