authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:04:17+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 02:13:26+02:00
log18964c086589a1aa3dfbd7ae8ace294bb1379c73
tree86f50fd0f1637e351527c729fcfd26d97e3ba92b
parent575e21c61a9257c5b0134f85c1bf849fb168c78e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

libcxx: disable all warnings


1 files changed, 2 insertions(+), 6 deletions(-)

src/libs/libcxx.zig+2-6
......@@ -206,6 +206,7 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError!
206206
207207 try addCxxArgs(comp, arena, &cflags);
208208
209 try cflags.append("-w"); // Disable all warnings.
209210 try cflags.append("-DNDEBUG");
210211 try cflags.append("-DLIBC_NAMESPACE=__llvm_libc_common_utils");
211212 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
......@@ -223,9 +224,6 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError!
223224
224225 try cflags.append("-nostdinc++");
225226 try cflags.append("-std=c++23");
226 try cflags.append("-Wno-user-defined-literals");
227 try cflags.append("-Wno-covered-switch-default");
228 try cflags.append("-Wno-suggest-override");
229227
230228 // These depend on only the zig lib directory file path, which is
231229 // purposefully either in the cache or not in the cache. The decision
......@@ -401,6 +399,7 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
401399
402400 try addCxxArgs(comp, arena, &cflags);
403401
402 try cflags.append("-w"); // Disable all warnings.
404403 try cflags.append("-DNDEBUG");
405404 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
406405 try cflags.append("-D_LIBCXXABI_BUILDING_LIBRARY");
......@@ -422,9 +421,6 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
422421 try cflags.append("-nostdinc++");
423422 try cflags.append("-fstrict-aliasing");
424423 try cflags.append("-std=c++23");
425 try cflags.append("-Wno-user-defined-literals");
426 try cflags.append("-Wno-covered-switch-default");
427 try cflags.append("-Wno-suggest-override");
428424
429425 // These depend on only the zig lib directory file path, which is
430426 // purposefully either in the cache or not in the cache. The decision