authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-16 00:45:45-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-16 03:01:13-07:00
loge1436873a3391aa3f97e044a87699b0788835241
tree2a9e2c8888884ad45153bef9de67c5303e40d4b0
parent37fa6f955d5c2c9e89a5b95751f7c393db1fe822

glibc: don't pass -frounding-math

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

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

src/glibc.zig+2-1
......@@ -317,7 +317,8 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void {
317317 "-std=gnu11",
318318 "-fgnu89-inline",
319319 "-fmerge-all-constants",
320 "-frounding-math",
320 // glibc sets this flag but clang does not support it.
321 // "-frounding-math",
321322 "-fno-stack-protector",
322323 "-fno-common",
323324 "-fmath-errno",