From e1436873a3391aa3f97e044a87699b0788835241 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 16 Dec 2021 00:45:45 -0700 Subject: [PATCH] glibc: don't pass -frounding-math glibc wants this flag but clang (our C compiler) does not support it. --- src/glibc.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glibc.zig b/src/glibc.zig index 462423fa12..d0f358a03f 100644 --- 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",