aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-24 05:14:55 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-09-05 06:16:25 +0200
commitc852992c7eb07907091a35b2ef4cc87cf9651c6e (patch)
tree18fcfa4a4156fb2aea72460071d901f37805c7b8 /src
parentf87dd43c1285d38d7a0f3092f6487bf1e1f4faa6 (diff)
downloadzig-c852992c7eb07907091a35b2ef4cc87cf9651c6e.tar.gz
zig-c852992c7eb07907091a35b2ef4cc87cf9651c6e.zip
glibc: Also pass `-Wno-unsupported-floating-point-opt` when building libc_nonshared.a.
Apparently 3fb6e46f6e4231b9569193a15a4357a2ae11fb0f wasn't enough.
Diffstat (limited to 'src')
-rw-r--r--src/glibc.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index ee1b208cdd..e34e12119e 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -369,6 +369,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre
"-fgnu89-inline",
"-fmerge-all-constants",
"-frounding-math",
+ "-Wno-unsupported-floating-point-opt", // For targets that don't support -frounding-math.
"-fno-stack-protector",
"-fno-common",
"-fmath-errno",