libcxxabi: define _LIBCPP_BUILDING_LIBRARY in addition to _LIBCXXABI_BUILDING_LIBRARY

This commit is contained in:
Alex Rønne Petersen 2025-10-04 00:44:50 +02:00
parent 43888e6549
commit ef2001c7ff
No known key found for this signature in database

View File

@ -406,6 +406,7 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
try addCxxArgs(comp, arena, &cflags);
try cflags.append("-DNDEBUG");
try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
try cflags.append("-D_LIBCXXABI_BUILDING_LIBRARY");
if (!comp.config.any_non_single_threaded) {
try cflags.append("-D_LIBCXXABI_HAS_NO_THREADS");