From 0934823815f1d4336b2160f09f65df5ba8e52a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 5 May 2025 08:06:09 +0200 Subject: [PATCH] Unbreak the build (156ab8750056c3ff440af0937806d8cdb2623816 is not in the 0.14.x branch). --- src/Compilation.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Compilation.zig b/src/Compilation.zig index c77b29d836..7c5b706175 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5825,11 +5825,12 @@ pub fn addCCArgs( // See the comment in libcxx.zig for more details about this. try argv.append("-D_LIBCPP_PSTL_BACKEND_SERIAL"); + const abi_version: u2 = if (target.os.tag == .emscripten) 2 else 1; try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{ - @intFromEnum(comp.libcxx_abi_version), + abi_version, })); try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_NAMESPACE=__{d}", .{ - @intFromEnum(comp.libcxx_abi_version), + abi_version, })); try argv.append(libcxx.hardeningModeFlag(mod.optimize_mode));