| ... | @@ -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! |
| 206 | | 206 | |
| 207 | try addCxxArgs(comp, arena, &cflags); | 207 | try addCxxArgs(comp, arena, &cflags); |
| 208 | | 208 | |
| | 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! |
| 223 | | 224 | |
| 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"); | | |
| 229 | | 227 | |
| 230 | // These depend on only the zig lib directory file path, which is | 228 | // These depend on only the zig lib directory file path, which is |
| 231 | // purposefully either in the cache or not in the cache. The decision | 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,6 +399,7 @@ pub fn buildLibCxxAbi(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 401 | | 399 | |
| 402 | try addCxxArgs(comp, arena, &cflags); | 400 | try addCxxArgs(comp, arena, &cflags); |
| 403 | | 401 | |
| | 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"); | | |
| 428 | | 424 | |
| 429 | // These depend on only the zig lib directory file path, which is | 425 | // These depend on only the zig lib directory file path, which is |
| 430 | // purposefully either in the cache or not in the cache. The decision | 426 | // purposefully either in the cache or not in the cache. The decision |