disallow non-global foreign import of variables on wasm

This commit is contained in:
Laytan Laats
2024-06-28 01:16:26 +02:00
parent ed7d34beb0
commit b79d7e6917
6 changed files with 9 additions and 10 deletions

View File

@@ -363,7 +363,6 @@ gb_internal bool cg_global_variables_create(cgModule *m, Array<cgGlobalVariable>
if (is_foreign) {
linkage = TB_LINKAGE_PUBLIC;
// lb_add_foreign_library_path(m, e->Variable.foreign_library);
// lb_set_wasm_import_attributes(g.value, e, name);
} else if (is_export) {
linkage = TB_LINKAGE_PUBLIC;
}