mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
segfault codemodel workaround
This commit is contained in:
parent
03af6749ed
commit
b92bc4922e
1 changed files with 8 additions and 1 deletions
|
@ -149,13 +149,20 @@ pub fn target_machine(
|
|||
|
||||
init_arch(target);
|
||||
|
||||
// workaround for issue:
|
||||
#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
|
||||
let code_model = CodeModel::Large;
|
||||
|
||||
#[cfg(not(all(target_arch = "aarch64", target_os = "macos")))]
|
||||
let code_model = CodeModel::Default;
|
||||
|
||||
Target::from_name(arch).unwrap().create_target_machine(
|
||||
&TargetTriple::create(target_triple_str(target)),
|
||||
"generic",
|
||||
"",
|
||||
opt,
|
||||
reloc,
|
||||
CodeModel::Default,
|
||||
code_model,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue