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

@@ -2628,6 +2628,8 @@ gb_internal bool lb_apply_thread_local_model(LLVMValueRef value, String model) {
LLVMThreadLocalMode mode = LLVMGeneralDynamicTLSModel;
if (model == "default") {
mode = LLVMGeneralDynamicTLSModel;
} else if (model == "globaldynamic") {
mode = LLVMGeneralDynamicTLSModel;
} else if (model == "localdynamic") {
mode = LLVMLocalDynamicTLSModel;
} else if (model == "initialexec") {