mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
make condition stricter
This commit is contained in:
parent
21a2f6f103
commit
748b2cf23a
1 changed files with 5 additions and 2 deletions
|
@ -404,8 +404,11 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
|
|||
executable[offset + *offset_in_section as usize..][..4]
|
||||
.copy_from_slice(&(delta as i32).to_le_bytes());
|
||||
} else {
|
||||
if *address == 0 {
|
||||
eprintln!("I don't know the address of the {} function!", name);
|
||||
if *address == 0 && !name.starts_with("roc") {
|
||||
eprintln!(
|
||||
"I don't know the address of the {} function! this may cause segfaults",
|
||||
name
|
||||
);
|
||||
}
|
||||
|
||||
match relocation.kind() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue