From 3fb6e46f6e4231b9569193a15a4357a2ae11fb0f 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 c9d43f0199..57894f5921 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);