mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
disallow non-global foreign import of variables on wasm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user