aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-08-11 17:34:16 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-09-19 09:37:31 -0700
commit5d4439cc3e9dc9196fc109552f36594ad97542c5 (patch)
treeb0ed2b36b213c5c47cd373327bb91cbf9e6d2205 /src/Compilation.zig
parent9ddfacd8e62abd80b25619dd852ee811dad5f7b6 (diff)
downloadzig-5d4439cc3e9dc9196fc109552f36594ad97542c5.tar.gz
zig-5d4439cc3e9dc9196fc109552f36594ad97542c5.zip
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.
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig3
1 files changed, 3 insertions, 0 deletions
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),
}));