Unbreak the build (156ab8750056c3ff440af0937806d8cdb2623816 is not in the 0.14.x branch).

This commit is contained in:
Alex Rønne Petersen 2025-05-05 08:06:09 +02:00 committed by GitHub
parent e739ba1bd9
commit 0934823815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));