mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 04:12:22 -07:00
disallow non-global foreign import of variables on wasm
This commit is contained in:
@@ -3217,8 +3217,6 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
|
||||
LLVMSetDLLStorageClass(g.value, LLVMDLLImportStorageClass);
|
||||
LLVMSetExternallyInitialized(g.value, true);
|
||||
lb_add_foreign_library_path(m, e->Variable.foreign_library);
|
||||
|
||||
// lb_set_wasm_import_attributes(g.value, e, name);
|
||||
} else {
|
||||
LLVMSetInitializer(g.value, LLVMConstNull(lb_type(m, e->type)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user