Commit b03a04c7fc

Alex Rønne Petersen <alex@alexrp.com>
2024-07-28 15:42:02
musl: Build with `-fexcess-precision=standard -frounding-math`.
Clang supports these now.
1 parent 243bb87
Changed files (1)
src/musl.zig
@@ -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",