authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-06-05 12:22:15+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-06-06 23:42:15-07:00
logf28ef7ee29ee1e8a1df092f5c4fff0497718415c
treece28881c69dad8238201c478d8b3a84e77230e58
parent437059f37cc4e7fb0f1398043a88b2d7a9363653

tests: extern threadlocals require LLVM

This is a current limitation of our self-hosted linkers.

1 files changed, 2 insertions(+), 0 deletions(-)

test/standalone/mix_c_files/build.zig+2
...@@ -24,6 +24,8 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize...@@ -24,6 +24,8 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
24 .optimize = optimize,24 .optimize = optimize,
25 .link_libc = true,25 .link_libc = true,
26 }),26 }),
27 // extern threadlocals are not implemented in the self-hosted linker
28 .use_llvm = true,
27 });29 });
28 exe.root_module.addCSourceFile(.{ .file = b.path("test.c"), .flags = &[_][]const u8{"-std=c11"} });30 exe.root_module.addCSourceFile(.{ .file = b.path("test.c"), .flags = &[_][]const u8{"-std=c11"} });
2931