update and fix the linker (#140)

This commit is contained in:
Cyrill Leutwiler
2024-12-18 23:11:06 +01:00
committed by GitHub
parent 22070a824d
commit 3f9771f838
9 changed files with 410 additions and 494 deletions
@@ -37,7 +37,7 @@ impl<'ctx> Global<'ctx> {
.add_global(r#type, Some(address_space.into()), name);
let global = Self { r#type, value };
global.value.set_linkage(inkwell::module::Linkage::Private);
global.value.set_linkage(inkwell::module::Linkage::External);
global
.value
.set_visibility(inkwell::GlobalVisibility::Default);