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

Statically compile libstdc++ everywhere if asked #94719

Merged
merged 1 commit into from
Mar 11, 2022

Commits on Mar 8, 2022

  1. Statically compile libstdc++ everywhere if asked

    PR rust-lang#93918 made it so that `-static-libstdc++` was only set in one place,
    and was only set during linking, but accidentally also made it so that
    it is no longer passed when building LLD or sanitizers, only when
    building LLVM itself. This moves the logic for setting
    `-static-libstdc++` in the linker flags back to `configure_cmake` so
    that it takes effect for all CMake invocations in `native.rs`.
    
    As a side-effect, this also causes libstdc++ to be statically compiled
    into sanitizers and LLD if `llvm-tools-enabled` is set but
    `llvm-static-stdcpp` is not, even though previously it was only linked
    statically if `llvm-static-stdcpp` was set explicitly. But that seems
    more like the expected behavior anyway.
    Jon Gjengset committed Mar 8, 2022
    Configuration menu
    Copy the full SHA
    b328688 View commit details
    Browse the repository at this point in the history