authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-18 02:47:28+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-23 00:59:06-07:00
log3fb6e46f6e4231b9569193a15a4357a2ae11fb0f
treeaf5aee84a2716208ec3acce8d591201e91728f3a
parent945fc7064bc143a8ccda22aeeefefc5efbeff7a4

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 files changed, 1 insertions(+), 0 deletions(-)

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