From 53403091d6d6410c651cd5dfcb8caf35082eb571 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 9 Aug 2022 14:48:14 +0900 Subject: [PATCH] meson: use 'not in' Follow-ups for 60f97fee2d2f948c8e8963ea8ff767008cb93cae and 32963344736004e01ff4dd9dca079faabaf58cf2. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cf3aa2b496..a7e3e87744 100644 --- a/meson.build +++ b/meson.build @@ -393,7 +393,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 '-fno-finite-math-only' not in c_args) error('-Ofast, -ffast-math, or -ffinite-math-only is specified in c_args.') endif