aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-16 00:45:45 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-16 03:01:13 -0700
commite1436873a3391aa3f97e044a87699b0788835241 (patch)
tree2a9e2c8888884ad45153bef9de67c5303e40d4b0 /src/glibc.zig
parent37fa6f955d5c2c9e89a5b95751f7c393db1fe822 (diff)
downloadzig-e1436873a3391aa3f97e044a87699b0788835241.tar.gz
zig-e1436873a3391aa3f97e044a87699b0788835241.zip
glibc: don't pass -frounding-math
glibc wants this flag but clang (our C compiler) does not support it.
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig3
1 files changed, 2 insertions, 1 deletions
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",