1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

meson: use 'not in'

Follow-ups for 60f97fee2d and
3296334473.
This commit is contained in:
Yu Watanabe 2022-08-09 14:48:14 +09:00 committed by Luca Boccassi
parent ff71363c26
commit 53403091d6

View 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