From b03a04c7fca587af0f1caf59881def3c91596728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 28 Jul 2024 15:42:02 +0200 Subject: [PATCH] musl: Build with `-fexcess-precision=standard -frounding-math`. Clang supports these now. --- src/musl.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/musl.zig b/src/musl.zig index 8ab05ee28c..acbb159cb0 100644 --- a/src/musl.zig +++ b/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",