-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for -Z codegen-backend #77933
Copy link
Copy link
Open
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-codegenArea: Code generationArea: Code generationB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-codegenArea: Code generationArea: Code generationB-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the
-Zcodegen-backendcompiler flag.rustc today only supports one stable backend ("llvm"), but it has many unstable backends.
In the future, it will support multiple stable backends.
Our plan is that the stable backends will all be allowlisted in the compiler. The general pattern will be that every stable backend will be denoted by an identifier with no
.in its name (e.g. "cranelift", "gcc", "llvm"). When we start reaching a point where one of the alternative backends is getting close to being ready to stabilize, we will then discuss how to offer a stable form of this flag (i.e.-C codegen-backendflag).Meanwhile, the
-Z codegen-backendflag will always unstably support an interface for connecting to an arbitrary backend loaded as a dynamic library, as described below.This flag unstably allows you specify a path to a dynamic library containing a function named
__rustc_codegen_backendwith a signature offn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>to use as code generation backend at runtime. (CodegenBackendtrait)Example
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Implementation history
codegen-backendto deps Add -Z codegen-backend dylib to deps #77565Summary Notes
Generated by triagebot, see help for how to add more