zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e1436873a3391aa3f97e044a87699b0788835241 (tree)
parent 37fa6f955d5c2c9e89a5b95751f7c393db1fe822
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 16 Dec 2021 00:45:45 -0700

glibc: don't pass -frounding-math

glibc wants this flag but clang (our C compiler) does not support it.

Diffstat:
Msrc/glibc.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glibc.zig b/src/glibc.zig @@ -317,7 +317,8 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { "-std=gnu11", "-fgnu89-inline", "-fmerge-all-constants", - "-frounding-math", + // glibc sets this flag but clang does not support it. + // "-frounding-math", "-fno-stack-protector", "-fno-common", "-fmath-errno",