mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 07:43:13 +00:00
Fix @(export) for global variable declarations
This commit is contained in:
@@ -2380,6 +2380,7 @@ DECL_ATTRIBUTE_PROC(var_decl_attribute) {
|
||||
if (ac->thread_local_model != "") {
|
||||
error(elem, "An exported variable cannot be thread local");
|
||||
}
|
||||
return true;
|
||||
} else if (name == "link_name") {
|
||||
if (ev.kind == ExactValue_String) {
|
||||
ac->link_name = ev.value_string;
|
||||
|
||||
Reference in New Issue
Block a user