about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorJon Gjengset <jongje@amazon.com>2022-03-07 16:59:10 -0800
committerJon Gjengset <jongje@amazon.com>2022-03-07 17:29:16 -0800
commitb328688d23d56a7b95ddcd994c3967a193dd25ea (patch)
treef6073e7b1006aad2569f5c969f8f00d86c9f6046 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent89adcc636f94d34a6fc90fa117e28ddf6be7b983 (diff)
downloadrust-b328688d23d56a7b95ddcd994c3967a193dd25ea.tar.gz
rust-b328688d23d56a7b95ddcd994c3967a193dd25ea.zip
Statically compile libstdc++ everywhere if asked
PR #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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions