From: asavah Date: Tue, 26 Jul 2022 14:48:24 +0000 (+0300) Subject: meson: fix math flags check X-Git-Tag: v252-rc1~575 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32963344736004e01ff4dd9dca079faabaf58cf2;p=thirdparty%2Fsystemd.git meson: fix math flags check --- diff --git a/meson.build b/meson.build index 4315914a2e0..692ee1ed4df 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