Commit f28ef7ee29

mlugg <mlugg@mlugg.co.uk>
2025-06-05 13:22:15
tests: extern threadlocals require LLVM
This is a current limitation of our self-hosted linkers.
1 parent 437059f
Changed files (1)
test
standalone
mix_c_files
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"} });