Skip to content

Commit f43bae7

Browse files
committed
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.
1 parent cf939b0 commit f43bae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/glibc.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre
369369
"-fmath-errno",
370370
"-ftls-model=initial-exec",
371371
"-Wno-ignored-attributes",
372+
"-Qunused-arguments",
372373
});
373374
try add_include_dirs(comp, arena, &args);
374375

0 commit comments

Comments
 (0)