From d59a606cbd794a9c681d5bce88e7ac1f254663c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 5 Jun 2024 19:31:52 +0200 Subject: [PATCH] meson: add -fno-trapping-math to default flags It is safe to enable for mpv, we don't check or care about floating point exceptions. Allow the compiler to ignore them too. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 49f2ebc650..f5cf2255c9 100644 --- a/meson.build +++ b/meson.build @@ -286,7 +286,8 @@ test_flags = ['-Wdisabled-optimization', '-Wno-switch', '-Wno-unused-parameter', '-fno-math-errno', - '-fno-signed-zeros'] + '-fno-signed-zeros', + '-fno-trapping-math'] flags += cc.get_supported_arguments(test_flags)