mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
make refcounting functions link as External
This commit is contained in:
parent
751192ddfc
commit
38d7e57248
1 changed files with 3 additions and 1 deletions
|
@ -986,7 +986,9 @@ pub fn build_header_help<'a, 'ctx, 'env>(
|
|||
env.module,
|
||||
fn_name,
|
||||
FunctionSpec::known_fastcc(fn_type),
|
||||
Linkage::Private,
|
||||
// this should be `Linkage::Private`, but that will remove all of the code for the inc/dec
|
||||
// functions on windows. LLVM just does not emit the assembly for them. Investigate why this is
|
||||
Linkage::External,
|
||||
);
|
||||
|
||||
let subprogram = env.new_subprogram(fn_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue