mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
when roc_panic is setjmp/longjmp, mark its linkage as internal
This commit is contained in:
parent
2f6f5c09a0
commit
d67617e64b
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,11 @@ pub fn add_sjlj_roc_panic(env: &Env<'_, '_, '_>) {
|
|||
let mut params = fn_val.get_param_iter();
|
||||
let roc_str_arg = params.next().unwrap();
|
||||
|
||||
// normally, roc_panic is marked as external so it can be provided by the host. But when we
|
||||
// define it here in LLVM IR, we never want it to be linked by the host (that would
|
||||
// overwrite which implementation is used.
|
||||
fn_val.set_linkage(Linkage::Internal);
|
||||
|
||||
let tag_id_arg = params.next().unwrap();
|
||||
|
||||
debug_assert!(params.next().is_none());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue