Skip to content

Commit

Permalink
Querify global_backend_features
Browse files Browse the repository at this point in the history
At the very least this serves to deduplicate the diagnostics that are
output about unknown target features provided via CLI.
  • Loading branch information
nagisa committed Feb 28, 2022
1 parent 648d038 commit 4f132cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 4f132cb

Please sign in to comment.