Skip to content

Commit 4f132cb

Browse files
committed
Querify global_backend_features
At the very least this serves to deduplicate the diagnostics that are output about unknown target features provided via CLI.
1 parent 648d038 commit 4f132cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl ExtraBackendMethods for GccCodegenBackend {
132132
base::compile_codegen_unit(tcx, cgu_name)
133133
}
134134

135-
fn target_machine_factory(&self, _sess: &Session, _opt_level: OptLevel) -> TargetMachineFactoryFn<Self> {
135+
fn target_machine_factory(&self, _sess: &Session, _opt_level: OptLevel, _features: &[String]) -> TargetMachineFactoryFn<Self> {
136136
// TODO(antoyo): set opt level.
137137
Arc::new(|_| {
138138
Ok(())

0 commit comments

Comments
 (0)