Querify global_backend_features
At the very least this serves to deduplicate the diagnostics that are output about unknown target features provided via CLI.
This commit is contained in:
parent
648d038c86
commit
4f132cb340
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ impl ExtraBackendMethods for GccCodegenBackend {
|
|||
base::compile_codegen_unit(tcx, cgu_name)
|
||||
}
|
||||
|
||||
fn target_machine_factory(&self, _sess: &Session, _opt_level: OptLevel) -> TargetMachineFactoryFn<Self> {
|
||||
fn target_machine_factory(&self, _sess: &Session, _opt_level: OptLevel, _features: &[String]) -> TargetMachineFactoryFn<Self> {
|
||||
// TODO(antoyo): set opt level.
|
||||
Arc::new(|_| {
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue