From 18964c086589a1aa3dfbd7ae8ace294bb1379c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 15 Apr 2026 02:04:17 +0200 Subject: [PATCH] libcxx: disable all warnings --- src/libs/libcxx.zig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/libcxx.zig b/src/libs/libcxx.zig index 316ac6d815b3d6023f0d63164194e412cfdd7e5c..07b56997f533308f44a2e7839026d24acf8d3fef 100644 --- a/src/libs/libcxx.zig +++ b/src/libs/libcxx.zig @@ -206,6 +206,7 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError! try addCxxArgs(comp, arena, &cflags); + try cflags.append("-w"); // Disable all warnings. try cflags.append("-DNDEBUG"); try cflags.append("-DLIBC_NAMESPACE=__llvm_libc_common_utils"); try cflags.append("-D_LIBCPP_BUILDING_LIBRARY"); @@ -223,9 +224,6 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError! try cflags.append("-nostdinc++"); try cflags.append("-std=c++23"); - try cflags.append("-Wno-user-defined-literals"); - try cflags.append("-Wno-covered-switch-default"); - try cflags.append("-Wno-suggest-override"); // These depend on only the zig lib directory file path, which is // 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 try addCxxArgs(comp, arena, &cflags); + try cflags.append("-w"); // Disable all warnings. try cflags.append("-DNDEBUG"); try cflags.append("-D_LIBCPP_BUILDING_LIBRARY"); try cflags.append("-D_LIBCXXABI_BUILDING_LIBRARY"); @@ -422,9 +421,6 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr try cflags.append("-nostdinc++"); try cflags.append("-fstrict-aliasing"); try cflags.append("-std=c++23"); - try cflags.append("-Wno-user-defined-literals"); - try cflags.append("-Wno-covered-switch-default"); - try cflags.append("-Wno-suggest-override"); // These depend on only the zig lib directory file path, which is // purposefully either in the cache or not in the cache. The decision -- 2.54.0