diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2016-09-19 02:32:28 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-09-19 02:48:08 -0500 |
| commit | 9631e9f9b3ffcf98b2654eeee8c4dd5f3a2ca50c (patch) | |
| tree | d3440baac928b78cc6251a064cbd1b5748d2644d /src/rustllvm/RustWrapper.cpp | |
| parent | fb62f4d544c954d355716dca8beb55726036721e (diff) | |
| download | rust-9631e9f9b3ffcf98b2654eeee8c4dd5f3a2ca50c.tar.gz rust-9631e9f9b3ffcf98b2654eeee8c4dd5f3a2ca50c.zip | |
rustc: implement -C link-arg
this flag lets you pass a _single_ argument to the linker but can be used _repeatedly_. For example, instead of using: ``` rustc -C link-args='-l bar' (..) ``` you could write ``` rustc -C link-arg='-l' -C link-arg='bar' (..) ``` This new flag can be used with RUSTFLAGS where `-C link-args` has problems with "nested" spaces: ``` RUSTFLAGS='-C link-args="-Tlayout.ld -nostartfiles"' ``` This passes three arguments to rustc: `-C` `link-args="-Tlayout.ld` and `-nostartfiles"` to `rustc`. That's not what we meant. But this does what we want: ``` RUSTFLAGS='-C link-arg=-Tlayout.ld -C link-arg=-nostartfiles` ``` cc rust-lang/rfcs#1509
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
