mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
allow ingested compiler-rt function in windows surgical linker
This commit is contained in:
parent
fe4577ce4c
commit
a41611b553
1 changed files with 3 additions and 1 deletions
|
@ -434,7 +434,9 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
|
||||||
relocation,
|
relocation,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if *address == 0 && !name.starts_with("roc") {
|
let is_ingested_compiler_rt =
|
||||||
|
["__muloti4", "__divti3", "__udivti3", "__modti3"].contains(&name.as_str());
|
||||||
|
if *address == 0 && !name.starts_with("roc") && !is_ingested_compiler_rt {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"I don't know the address of the {} function! this may cause segfaults",
|
"I don't know the address of the {} function! this may cause segfaults",
|
||||||
name
|
name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue