about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2018-11-08 18:14:53 -0700
committerGitHub <noreply@github.com>2018-11-08 18:14:53 -0700
commit602a8b400f3468cf25fa834a5e9fb8a0a2403e2c (patch)
tree73b2ddef94eb9781456fc31089bae5da10a3cf84 /src/rustllvm/RustWrapper.cpp
parent4805a97274bd8673bbe01d82ab3694441b1cf11d (diff)
parentf3428a7dc4bef051f6c1fb454761eda77dbeb106 (diff)
downloadrust-602a8b400f3468cf25fa834a5e9fb8a0a2403e2c.tar.gz
rust-602a8b400f3468cf25fa834a5e9fb8a0a2403e2c.zip
Rollup merge of #55659 - alexcrichton:musl-no-group, r=michaelwoerister
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