diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-11-08 18:14:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-08 18:14:53 -0700 |
| commit | 602a8b400f3468cf25fa834a5e9fb8a0a2403e2c (patch) | |
| tree | 73b2ddef94eb9781456fc31089bae5da10a3cf84 /src/rustllvm/RustWrapper.cpp | |
| parent | 4805a97274bd8673bbe01d82ab3694441b1cf11d (diff) | |
| parent | f3428a7dc4bef051f6c1fb454761eda77dbeb106 (diff) | |
| download | rust-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
