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!...@@ -206,6 +206,7 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError!
206206
207 try addCxxArgs(comp, arena, &cflags);207 try addCxxArgs(comp, arena, &cflags);
208208
209 try cflags.append("-w"); // Disable all warnings.
209 try cflags.append("-DNDEBUG");210 try cflags.append("-DNDEBUG");
210 try cflags.append("-DLIBC_NAMESPACE=__llvm_libc_common_utils");211 try cflags.append("-DLIBC_NAMESPACE=__llvm_libc_common_utils");
211 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");212 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
...@@ -223,9 +224,6 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError!...@@ -223,9 +224,6 @@ pub fn buildLibCxx(comp: *Compilation, prog_node: std.Progress.Node) BuildError!
223224
224 try cflags.append("-nostdinc++");225 try cflags.append("-nostdinc++");
225 try cflags.append("-std=c++23");226 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
230 // These depend on only the zig lib directory file path, which is228 // These depend on only the zig lib directory file path, which is
231 // purposefully either in the cache or not in the cache. The decision229 // 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...@@ -401,6 +399,7 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
401399
402 try addCxxArgs(comp, arena, &cflags);400 try addCxxArgs(comp, arena, &cflags);
403401
402 try cflags.append("-w"); // Disable all warnings.
404 try cflags.append("-DNDEBUG");403 try cflags.append("-DNDEBUG");
405 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");404 try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
406 try cflags.append("-D_LIBCXXABI_BUILDING_LIBRARY");405 try cflags.append("-D_LIBCXXABI_BUILDING_LIBRARY");
...@@ -422,9 +421,6 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr...@@ -422,9 +421,6 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
422 try cflags.append("-nostdinc++");421 try cflags.append("-nostdinc++");
423 try cflags.append("-fstrict-aliasing");422 try cflags.append("-fstrict-aliasing");
424 try cflags.append("-std=c++23");423 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
429 // These depend on only the zig lib directory file path, which is425 // These depend on only the zig lib directory file path, which is
430 // purposefully either in the cache or not in the cache. The decision426 // purposefully either in the cache or not in the cache. The decision