From f15eee30ad4d99af69a8fd597a70a08bda2c174b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 18 Aug 2024 02:47:28 +0200 Subject: [PATCH] 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. --- src/glibc.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glibc.zig b/src/glibc.zig index c9d43f0199c1..57894f592139 100644 --- 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);