@@ -19,7 +19,7 @@ const pkgs = packages("");
1919
2020/// Do not rename this constant. It is scanned by some scripts to determine
2121/// which zig version to install.
22- pub const recommended_zig_version = "0.12.1 " ;
22+ pub const recommended_zig_version = "0.13.0 " ;
2323
2424pub fn build (b : * std.Build ) ! void {
2525 switch (comptime builtin .zig_version .order (std .SemanticVersion .parse (recommended_zig_version ) catch unreachable )) {
@@ -49,7 +49,19 @@ pub fn build(b: *std.Build) !void {
4949 const bench = b .addExecutable (.{
5050 .name = "zig-js-runtime-bench" ,
5151 .root_source_file = b .path ("src/main_bench.zig" ),
52- .single_threaded = true ,
52+
53+ // Threads are now required to compile using libc++.
54+ // This change happens when upgrading to zig 0.13.0
55+ //
56+ // With Single thread, I have the following error:
57+ // > error: sub-compilation of libcxx failed
58+ // > /usr/local/zig-0.13.0/lib/libcxx/include/future:368:4: note:
59+ // >"<future> is not supported since libc++ has been configured without
60+ // > support for threads."
61+ //
62+ // see https://github.com/llvm/llvm-project/issues/76588
63+ .single_threaded = false ,
64+
5365 .target = target ,
5466 .optimize = mode ,
5567 });
0 commit comments