]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fix math flags check
authorasavah <asavah@avh.od.ua>
Tue, 26 Jul 2022 14:48:24 +0000 (17:48 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Jul 2022 17:27:43 +0000 (02:27 +0900)
meson.build

index 4315914a2e0b8d4e28a551562a05ffc8a7003643..692ee1ed4df96a0b3f24d40429670f31c95bdc3d 100644 (file)
@@ -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