Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cefee7b

Browse files
authoredApr 9, 2020
Rollup merge of rust-lang#70868 - petrochenkov:linkorder, r=nagisa,mati865
rustc_codegen_ssa: Refactor construction of linker arguments And add comments. This PR doesn't reorder any linker arguments and therefore shouldn't contain any observable changes. The next goal here is to - Factor out order-independent linker arguments in the compiler code and in target specifications and pass them together. Such arguments generally apply to the whole linking session or the produced linking result rather to individual object files or libraries. - Figure out where exactly among the remaining order-dependent arguments we should place customization points like `-C link-args` and `-Z pre-link-args`. - Possibly provide command line opt-outs for options that are currently passed unconditionally (like CRT objects or arguments defined by the target spec). - Document and stabilize the customization points that are not yet stable (rust-lang#70505).
2 parents a209b4f + 5a4fa45 commit cefee7b

File tree

2 files changed

+413
-261
lines changed

2 files changed

+413
-261
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.