Don't use LLVM to compute -Ctarget-feature
This commit is contained in:
parent
484aca8857
commit
a25da077cf
6 changed files with 121 additions and 113 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue