]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use 'not in'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Aug 2022 05:48:14 +0000 (14:48 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 9 Aug 2022 19:21:30 +0000 (20:21 +0100)
Follow-ups for 60f97fee2d2f948c8e8963ea8ff767008cb93cae and
32963344736004e01ff4dd9dca079faabaf58cf2.

meson.build

index cf3aa2b4964976493e86a5985a7602d57467df19..a7e3e8774438a7aa288701cbeabb997e97ef0b98 100644 (file)
@@ -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