Use Internal linkage instead of Private to keep roc function symbols in the final binary

This commit is contained in:
Joshua Warner 2021-11-19 21:32:34 -08:00
parent 5b19337089
commit 45f9f800ef
2 changed files with 3 additions and 3 deletions

View file

@ -4136,7 +4136,7 @@ fn build_proc_header<'a, 'ctx, 'env>(
env.module, env.module,
fn_name.as_str(), fn_name.as_str(),
fn_type, fn_type,
Linkage::Private, Linkage::Internal,
FAST_CALL_CONV, FAST_CALL_CONV,
); );
@ -6213,7 +6213,7 @@ fn build_foreign_symbol<'a, 'ctx, 'env>(
env.module, env.module,
&fastcc_function_name, &fastcc_function_name,
fastcc_type, fastcc_type,
Linkage::Private, Linkage::Internal,
FAST_CALL_CONV, FAST_CALL_CONV,
); );

View file

@ -183,7 +183,7 @@ impl<'ctx> PointerToRefcount<'ctx> {
env.module, env.module,
fn_name, fn_name,
fn_type, fn_type,
Linkage::Private, Linkage::Internal,
FAST_CALL_CONV, // Because it's an internal-only function, it should use the fast calling convention. FAST_CALL_CONV, // Because it's an internal-only function, it should use the fast calling convention.
); );