Skip to content

rustc_target: Add a compatibility layer to separate internal and user-facing linker flavors - #100552

Merged
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:flavorcompat
Sep 2, 2022
Merged

rustc_target: Add a compatibility layer to separate internal and user-facing linker flavors#100552
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:flavorcompat

Conversation

@petrochenkov

Copy link
Copy Markdown
Contributor

I want to do some refactorings in rustc_target - merge lld_flavor and linker_is_gnu into linker_flavor, support combination gcc+lld (#96827).
This PR adds some compatibility infra that makes that possible without making any changes to user-facing interfaces - -Clinker-flavor values and json target specs. (For json target specs this infra may eventually go away since they are not very stable.)

The second commit does some light refactoring of internal linker flavors (applies changes from petrochenkov@53eca42 that don't require mass-editing target specs).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants