From f28ef7ee29ee1e8a1df092f5c4fff0497718415c Mon Sep 17 00:00:00 2001 From: mlugg Date: Thu, 5 Jun 2025 12:22:15 +0100 Subject: [PATCH] tests: extern threadlocals require LLVM This is a current limitation of our self-hosted linkers. --- test/standalone/mix_c_files/build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/standalone/mix_c_files/build.zig b/test/standalone/mix_c_files/build.zig index 32b1d57b5c..a7415b4f01 100644 --- a/test/standalone/mix_c_files/build.zig +++ b/test/standalone/mix_c_files/build.zig @@ -24,6 +24,8 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize .optimize = optimize, .link_libc = true, }), + // extern threadlocals are not implemented in the self-hosted linker + .use_llvm = true, }); exe.root_module.addCSourceFile(.{ .file = b.path("test.c"), .flags = &[_][]const u8{"-std=c11"} });