mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
change the cutoff for when a pointer is used on windows
This commit is contained in:
parent
8175e3a9e2
commit
d99fdb3831
1 changed files with 3 additions and 1 deletions
|
@ -6720,7 +6720,9 @@ impl<'ctx> FunctionSpec<'ctx> {
|
|||
pub fn to_cc_return<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>, layout: &Layout<'a>) -> CCReturn {
|
||||
let return_size = layout.stack_size(env.layout_interner, env.target_info);
|
||||
let pass_result_by_pointer = match env.target_info.operating_system {
|
||||
roc_target::OperatingSystem::Windows => return_size >= env.target_info.ptr_width() as u32,
|
||||
roc_target::OperatingSystem::Windows => {
|
||||
return_size >= 2 * env.target_info.ptr_width() as u32
|
||||
}
|
||||
roc_target::OperatingSystem::Unix => return_size > 2 * env.target_info.ptr_width() as u32,
|
||||
roc_target::OperatingSystem::Wasi => unreachable!(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue