add tls when we have crt

This commit is contained in:
Jon Lipstate
2025-09-03 22:32:33 -07:00
parent 231ce2da59
commit e0c4c53362
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -3619,8 +3619,9 @@ int main(int arg_count, char const **arg_ptr) {
// }
// Warn about Windows i386 thread-local storage limitations
if (build_context.metrics.arch == TargetArch_i386 && build_context.metrics.os == TargetOs_windows) {
gb_printf_err("Warning: Thread-local storage is disabled on Windows i386.\n");
if (build_context.metrics.arch == TargetArch_i386 && build_context.metrics.os == TargetOs_windows && build_context.no_crt) {
gb_printf_err("Warning: Thread-local storage is not supported on Windows i386 with -no-crt.\n");
gb_printf_err(" Multi-threaded code will not work correctly.\n");
}
// Check chosen microarchitecture. If not found or ?, print list.