Skip to content

Commit

Permalink
musl: Build with -fexcess-precision=standard -frounding-math.
Browse files Browse the repository at this point in the history
Clang supports these now.
  • Loading branch information
alexrp committed Jul 28, 2024
1 parent 243bb87 commit b03a04c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/musl.zig
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,8 @@ fn addCcArgs(
try args.appendSlice(&[_][]const u8{
"-std=c99",
"-ffreestanding",
// Musl adds these args to builds with gcc but clang does not support them.
//"-fexcess-precision=standard",
//"-frounding-math",
"-fexcess-precision=standard",
"-frounding-math",
"-fno-strict-aliasing",
"-Wa,--noexecstack",
"-D_XOPEN_SOURCE=700",
Expand Down

0 comments on commit b03a04c

Please sign in to comment.