rust/src/librustc/session
Jorge Aparicio 9631e9f9b3 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
2016-09-19 02:48:08 -05:00
..
config.rs rustc: implement -C link-arg 2016-09-19 02:48:08 -05:00
filesearch.rs Remove unused trait imports 2016-04-12 22:58:55 +09:00
mod.rs Move macro resolution into librustc_resolve. 2016-09-13 09:40:26 +00:00
search_paths.rs Add the notion of a dependency tracking status to commandline arguments. 2016-08-11 09:56:00 -04:00