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(...@@ -392,9 +392,8 @@ fn addCcArgs(
392 try args.appendSlice(&[_][]const u8{392 try args.appendSlice(&[_][]const u8{
393 "-std=c99",393 "-std=c99",
394 "-ffreestanding",394 "-ffreestanding",
395 // Musl adds these args to builds with gcc but clang does not support them.395 "-fexcess-precision=standard",
396 //"-fexcess-precision=standard",396 "-frounding-math",
397 //"-frounding-math",
398 "-fno-strict-aliasing",397 "-fno-strict-aliasing",
399 "-Wa,--noexecstack",398 "-Wa,--noexecstack",
400 "-D_XOPEN_SOURCE=700",399 "-D_XOPEN_SOURCE=700",