zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3fb6e46f6e4231b9569193a15a4357a2ae11fb0f (tree)
parent 945fc7064bc143a8ccda22aeeefefc5efbeff7a4
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sun, 18 Aug 2024 02:47:28 +0200

glibc: Pass -Qunused-arguments when building libc_nonshared.a.

For some platforms, the math-related flags are ignored and produce warnings.
There's nothing we can do about that, so just silence them.

Diffstat:
Msrc/glibc.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/glibc.zig b/src/glibc.zig @@ -369,6 +369,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre "-fmath-errno", "-ftls-model=initial-exec", "-Wno-ignored-attributes", + "-Qunused-arguments", }); try add_include_dirs(comp, arena, &args);