Don't use LLVM to compute -Ctarget-feature
This commit is contained in:
@@ -269,7 +269,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
||||
|
||||
fn provide(&self, providers: &mut Providers) {
|
||||
providers.global_backend_features =
|
||||
|tcx, ()| llvm_util::global_llvm_features(tcx.sess, true)
|
||||
|tcx, ()| llvm_util::global_llvm_features(tcx.sess, true, false)
|
||||
}
|
||||
|
||||
fn print(&self, req: &PrintRequest, out: &mut String, sess: &Session) {
|
||||
@@ -434,7 +434,7 @@ impl ModuleLlvm {
|
||||
ModuleLlvm {
|
||||
llmod_raw,
|
||||
llcx,
|
||||
tm: ManuallyDrop::new(create_informational_target_machine(tcx.sess, true)),
|
||||
tm: ManuallyDrop::new(create_informational_target_machine(tcx.sess, false)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user