From 5d4439cc3e9dc9196fc109552f36594ad97542c5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 11 Aug 2023 17:34:16 -0700 Subject: libcxx: update to LLVM 17 release/17.x branch, commit 8f4dd44097c9ae25dd203d5ac87f3b48f854bba8 This adds the flag `-D_LIBCPP_PSTL_CPU_BACKEND_SERIAL`. A future enhancement could possibly pass something different if there is a compelling parallel implementation. That libdispatch one might be worth looking into. --- src/Compilation.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 0150d615e3..d6157fec82 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4318,6 +4318,9 @@ pub fn addCCArgs( try argv.append("-D_LIBCPP_HAS_NO_THREADS"); } + // See the comment in libcxx.zig for more details about this. + try argv.append("-D_LIBCPP_PSTL_CPU_BACKEND_SERIAL"); + try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{ @intFromEnum(comp.libcxx_abi_version), })); -- cgit v1.2.3