Skip to content

Commit

Permalink
Compilation: Synchronize some libcxx CXXFLAGS with upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Aug 25, 2024
1 parent 51365b4 commit 74baef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5384,15 +5384,15 @@ pub fn addCCArgs(
try argv.append("-D_LIBCPP_HAS_MUSL_LIBC");
}
try argv.append("-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS");
try argv.append("-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS");
try argv.append("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS");
try argv.append("-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS");

if (!comp.config.any_non_single_threaded) {
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("-D_LIBCPP_PSTL_BACKEND_SERIAL");

try argv.append(try std.fmt.allocPrint(arena, "-D_LIBCPP_ABI_VERSION={d}", .{
@intFromEnum(comp.libcxx_abi_version),
Expand Down

0 comments on commit 74baef6

Please sign in to comment.