| ... | @@ -5825,11 +5825,12 @@ pub fn addCCArgs( | ... | @@ -5825,11 +5825,12 @@ pub fn addCCArgs( |
| 5825 | // See the comment in libcxx.zig for more details about this. | 5825 | // See the comment in libcxx.zig for more details about this. |
| 5826 | try argv.append("-D_LIBCPP_PSTL_BACKEND_SERIAL"); | 5826 | try argv.append("-D_LIBCPP_PSTL_BACKEND_SERIAL"); |
| 5827 | | 5827 | |
| | 5828 | const abi_version: u2 = if (target.os.tag == .emscripten) 2 else 1; |
| 5828 | try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{ | 5829 | try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{ |
| 5829 | @intFromEnum(comp.libcxx_abi_version), | 5830 | abi_version, |
| 5830 | })); | 5831 | })); |
| 5831 | try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_NAMESPACE=__{d}", .{ | 5832 | try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_NAMESPACE=__{d}", .{ |
| 5832 | @intFromEnum(comp.libcxx_abi_version), | 5833 | abi_version, |
| 5833 | })); | 5834 | })); |
| 5834 | | 5835 | |
| 5835 | try argv.append(libcxx.hardeningModeFlag(mod.optimize_mode)); | 5836 | try argv.append(libcxx.hardeningModeFlag(mod.optimize_mode)); |