Merge pull request #4254 from roc-lang/wasm32_cli_run

wasm 32 cli run fixes, added to ci tests
This commit is contained in:
Anton-4 2022-10-15 18:41:52 +02:00 committed by GitHub
commit d242895ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 288 additions and 2814 deletions

View file

@ -6850,7 +6850,7 @@ pub fn to_cc_return<'a, 'ctx, 'env>(env: &Env<'a, 'ctx, 'env>, layout: &Layout<'
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!(),
roc_target::OperatingSystem::Wasi => return_size > 2 * env.target_info.ptr_width() as u32,
};
if return_size == 0 {