rust/src/librustc_interface
Mazdak Farrokhzad aafbe07af3
Rollup merge of #70665 - petrochenkov:linkargs, r=nagisa
Do not lose or reorder user-provided linker arguments

Linker arguments are potentially order-dependent, so the order in which `-C link-arg` and `-C link-args` options are passed to `rustc` should be preserved when they are passed further to the linker.

Also, multiple `-C link-args` options are now appended to each other rather than overwrite each other.

In other words, `-C link-arg=a -C link-args="b c" -C link-args="d e" -C link-arg=f` is now passed as `"a" "b" "c" "d" "e" "f"` and not as `"d" "e" "a" "f"`.

Addresses https://github.com/rust-lang/rust/pull/70505#issuecomment-606780163.
2020-04-06 00:53:43 +02:00
..
build.rs Locate rustc binary similarly to codegen backend loading 2019-09-10 16:57:14 -04:00
callbacks.rs Query-ify Instance::resolve 2020-04-05 01:21:36 -04:00
Cargo.toml rustc -> rustc_middle part 1 2020-03-30 07:02:56 +02:00
interface.rs use direct import for ErrorReported 2020-04-02 13:40:43 +02:00
lib.rs Remove unused feature gates from librustc_interface 2020-02-07 13:58:57 +01:00
passes.rs use direct import for ErrorReported 2020-04-02 13:40:43 +02:00
proc_macro_decls.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
queries.rs use direct import for ErrorReported 2020-04-02 13:40:43 +02:00
tests.rs Do not lose or reorder user-provided linker arguments 2020-04-04 22:01:18 +03:00
util.rs Add hash of source files in debug info 2020-04-02 14:13:19 -07:00