about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-10 23:12:59 +0100
committerGitHub <noreply@github.com>2022-03-10 23:12:59 +0100
commit1cf879355ba39946f59bb90149b09d3b85567230 (patch)
treed1e9d7104df6df9ae41f7c146ca324bb6201aa00 /compiler/rustc_codegen_llvm/src
parent634a6b0d251f523f6b61a33ea647c9850de1a704 (diff)
parentb328688d23d56a7b95ddcd994c3967a193dd25ea (diff)
downloadrust-1cf879355ba39946f59bb90149b09d3b85567230.tar.gz
rust-1cf879355ba39946f59bb90149b09d3b85567230.zip
Rollup merge of #94719 - jonhoo:enable-static-lld, r=Mark-Simulacrum
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, only when building LLVM
itself. This moves the logic for setting `-static-libstdc++` in the
linker flags 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, whereas previously the `llvm-static-stdcpp` flag had no
effect on sanitizers. It also makes it so that LLD will be compiled
statically if `llvm-tools-enabled` is set, even though previously it was
only linked statically if `llvm-static-stdcpp` was set explicitly. Both
of these seem like they match expected behavior than what was there
prior to #93918.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions