Merge pull request #20839 from alexrp/musl-stuff

`musl`: Align `CFLAGS` with upstream
This commit is contained in:
Andrew Kelley 2024-07-29 11:34:18 -07:00 committed by GitHub
commit 19e4de135f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -392,9 +392,9 @@ 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",