Add globaldynamic thread_local model (same as the current default)

This commit is contained in:
gingerBill
2025-12-30 13:08:30 +00:00
parent e61228484a
commit 93d7e2a452
2 changed files with 4 additions and 0 deletions

View File

@@ -4027,6 +4027,7 @@ gb_internal DECL_ATTRIBUTE_PROC(var_decl_attribute) {
} else if (ev.kind == ExactValue_String) {
String model = ev.value_string;
if (model == "default" ||
model == "globaldynamic" ||
model == "localdynamic" ||
model == "initialexec" ||
model == "localexec") {
@@ -4035,6 +4036,7 @@ gb_internal DECL_ATTRIBUTE_PROC(var_decl_attribute) {
ERROR_BLOCK();
error(elem, "Invalid thread local model '%.*s'. Valid models:", LIT(model));
error_line("\tdefault\n");
error_line("\tglobaldynamic\n");
error_line("\tlocaldynamic\n");
error_line("\tinitialexec\n");
error_line("\tlocalexec\n");