Don't use LLVM to compute -Ctarget-feature

This commit is contained in:
Caleb Zulawski 2024-08-03 23:51:37 -04:00
parent 484aca8857
commit a25da077cf
6 changed files with 121 additions and 113 deletions

View file

@ -149,7 +149,7 @@ pub unsafe fn create_module<'ll>(
// Ensure the data-layout values hardcoded remain the defaults.
{
let tm = crate::back::write::create_informational_target_machine(tcx.sess, true);
let tm = crate::back::write::create_informational_target_machine(tcx.sess, false);
unsafe {
llvm::LLVMRustSetDataLayoutFromTargetMachine(llmod, &tm);
}