mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
add missing symbols to dev object files on unix
This commit is contained in:
parent
d3a85e9ce5
commit
2769f3dc60
1 changed files with 16 additions and 0 deletions
|
@ -214,6 +214,22 @@ fn build_object<'a, B: Backend<'a>>(
|
|||
"roc_panic".into(),
|
||||
"roc_builtins.utils.test_panic".into(),
|
||||
);
|
||||
// Extra symbols only required on unix systems.
|
||||
if matches!(output.format(), BinaryFormat::Elf | BinaryFormat::MachO) {
|
||||
generate_wrapper(
|
||||
&mut backend,
|
||||
&mut output,
|
||||
"roc_getppid".into(),
|
||||
"getppid".into(),
|
||||
);
|
||||
generate_wrapper(&mut backend, &mut output, "roc_mmap".into(), "mmap".into());
|
||||
generate_wrapper(
|
||||
&mut backend,
|
||||
&mut output,
|
||||
"roc_shm_open".into(),
|
||||
"shm_open".into(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Setup layout_ids for procedure calls.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue