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