zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f28ef7ee29ee1e8a1df092f5c4fff0497718415c (tree)
parent 437059f37cc4e7fb0f1398043a88b2d7a9363653
Author: mlugg <mlugg@mlugg.co.uk>
Date:   Thu,  5 Jun 2025 12:22:15 +0100

tests: extern threadlocals require LLVM

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

Diffstat:
Mtest/standalone/mix_c_files/build.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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"} });