Skip to content

Commit

Permalink
glibc: Pass -Qunused-arguments when building libc_nonshared.a.
Browse files Browse the repository at this point in the history
For some platforms, the math-related flags are ignored and produce warnings.
There's nothing we can do about that, so just silence them.
  • Loading branch information
alexrp authored and andrewrk committed Aug 23, 2024
1 parent 945fc70 commit 3fb6e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/glibc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3fb6e46

Please sign in to comment.