]> git.lizzy.rs Git - rust.git/commit
add -Z pre-link-arg{,s} to rustc
authorJorge Aparicio <jorge@japaric.io>
Sat, 13 May 2017 13:21:24 +0000 (08:21 -0500)
committerJorge Aparicio <jorge@japaric.io>
Sat, 13 May 2017 14:26:55 +0000 (09:26 -0500)
commit94d2c43300148d5c0ea8c93cedb94151953dcf83
tree2319f1ce8872dd6cc4a0b40ce3d52a987e12017a
parentef3ec5ece5bdf8950810225a9a3bc3cd1926e3d5
add -Z pre-link-arg{,s} to rustc

This commit adds two unstable flags to `rustc`: `-Z pre-link-arg` and `-Z
pre-link-args`. These are the counterpart of the existing `-C link-arg{,s}`
flags and can be used to pass extra arguments at the *beginning* of the linker
invocation, before the Rust object files are passed.
src/librustc/session/config.rs
src/librustc_trans/back/link.rs