From 32963344736004e01ff4dd9dca079faabaf58cf2 Mon Sep 17 00:00:00 2001 From: asavah Date: Tue, 26 Jul 2022 17:48:24 +0300 Subject: [PATCH] meson: fix math flags check --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4315914a2e..692ee1ed4d 100644 --- a/meson.build +++ b/meson.build @@ -391,7 +391,7 @@ possible_common_cc_flags = [ c_args = get_option('c_args') # Our json library does not support -ffinite-math-only, which is enabled by -Ofast or -ffast-math. -if (('-Ofast' in c_args or '-ffast-math' in c_args or '-ffinite-math-only' in c_args) and not '-fno-finite-math-only' in c_args) +if (('-Ofast' in c_args or '-ffast-math' in c_args or '-ffinite-math-only' in c_args) and not ('-fno-finite-math-only' in c_args)) error('-Ofast, -ffast-math, or -ffinite-math-only is specified in c_args.') endif -- 2.25.1