1
Fork 0

PR feedback

This commit is contained in:
khyperia 2020-09-17 12:14:18 +02:00
parent c946c40d9d
commit 48655c2d2c
3 changed files with 7 additions and 10 deletions

View file

@ -55,9 +55,11 @@ pub trait CodegenBackend {
fn print_passes(&self) {}
fn print_version(&self) {}
/// If this plugin provides additional builtin targets, provide them here.
/// If this plugin provides additional builtin targets, provide the one enabled by the options here.
/// Be careful: this is called *before* init() is called.
fn target_override(&self, opts: &config::Options) -> Option<Target>;
fn target_override(&self, _opts: &config::Options) -> Option<Target> {
None
}
fn metadata_loader(&self) -> Box<MetadataLoaderDyn>;
fn provide(&self, _providers: &mut Providers);