aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-10-08 16:08:05 -0400
committerAndrew Kelley <andrew@ziglang.org>2025-10-10 22:47:47 -0700
commit2e31077fe0e021858cf2f92f85e5fcfd12c41501 (patch)
tree5f1e04aebfe2e0f440cd3d8426c645d1a723b97b /src/Compilation.zig
parentb2bc6073c8ada065906da9e3b5a4a2e7db04c21d (diff)
downloadzig-2e31077fe0e021858cf2f92f85e5fcfd12c41501.tar.gz
zig-2e31077fe0e021858cf2f92f85e5fcfd12c41501.zip
Coff: implement threadlocal variables
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index e7bcc35b29..5925a80f08 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1985,7 +1985,7 @@ pub fn create(gpa: Allocator, arena: Allocator, diag: *CreateDiagnostic, options
switch (target_util.zigBackend(target, use_llvm)) {
else => {},
.stage2_aarch64, .stage2_x86_64 => if (target.ofmt == .coff) {
- break :s if (is_exe_or_dyn_lib) .dyn_lib else .zcu;
+ break :s if (is_exe_or_dyn_lib and build_options.have_llvm) .dyn_lib else .zcu;
},
}
if (options.config.use_new_linker) break :s .zcu;