authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-28 15:42:02+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-28 15:42:02+02:00
logb03a04c7fca587af0f1caf59881def3c91596728
treef9c3498baef5b85516b35a921b03321afc4090f1
parent243bb87db0a793dbc6c3b11226244816cc3d9937
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

musl: Build with `-fexcess-precision=standard -frounding-math`.

Clang supports these now.

1 files changed, 2 insertions(+), 3 deletions(-)

src/musl.zig+2-3
......@@ -392,9 +392,8 @@ fn addCcArgs(
392392 try args.appendSlice(&[_][]const u8{
393393 "-std=c99",
394394 "-ffreestanding",
395 // Musl adds these args to builds with gcc but clang does not support them.
396 //"-fexcess-precision=standard",
397 //"-frounding-math",
395 "-fexcess-precision=standard",
396 "-frounding-math",
398397 "-fno-strict-aliasing",
399398 "-Wa,--noexecstack",
400399 "-D_XOPEN_SOURCE=700",