about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-11-03 10:20:07 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-11-03 10:23:51 -0700
commitf3428a7dc4bef051f6c1fb454761eda77dbeb106 (patch)
treec92e07c340a5fd618c32d777c0c500765c72b62b /src/rustllvm/RustWrapper.cpp
parent2ad8c7b3502616aff142a4640cce911c6c2c5463 (diff)
downloadrust-f3428a7dc4bef051f6c1fb454761eda77dbeb106.tar.gz
rust-f3428a7dc4bef051f6c1fb454761eda77dbeb106.zip
rustc: Delete grouping logic from the musl target
This commit deletes the injection of `-(` and `-)` options to the linker
for the musl targets. This actually causes problems today on nightly if
you execute:

    $ echo 'fn main() {}' >> foo.rs
    $ rustc --target x86_64-unknown-linux-musl -C panic=abort

you get a linker error about "cannot nest groups". This comes about
because rustc injects its own `--start-group` and `--end-group`
variables which clash with the outer `-(` and `-)` variables. It's not
entirely clear to me why this doesn't affect the musl target by default
(in `-C panic=unwind` mode).

The compiler's own injection of `--start-group` and `--end-group` should
solve the issues mentioned in the comment for injecting `-(` and `-)` as
well.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions