mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
0934823815f1d4336b2160f09f65df5ba8e52a15 take 2.
This commit is contained in:
parent
0934823815
commit
5cfd47660c
@ -383,11 +383,12 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
|
||||
const cxxabi_include_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libcxxabi", "include" });
|
||||
const cxx_include_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libcxx", "include" });
|
||||
const cxx_src_include_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libcxx", "src" });
|
||||
const abi_version: u2 = if (target.os.tag == .emscripten) 2 else 1;
|
||||
const abi_version_arg = try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{
|
||||
@intFromEnum(comp.libcxx_abi_version),
|
||||
abi_version,
|
||||
});
|
||||
const abi_namespace_arg = try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_NAMESPACE=__{d}", .{
|
||||
@intFromEnum(comp.libcxx_abi_version),
|
||||
abi_version,
|
||||
});
|
||||
|
||||
const optimize_mode = comp.compilerRtOptMode();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user