1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

meson: fix math flags check

This commit is contained in:
asavah 2022-07-26 17:48:24 +03:00 committed by Yu Watanabe
parent 2d62579570
commit 3296334473

View File

@ -391,7 +391,7 @@ possible_common_cc_flags = [
c_args = get_option('c_args') c_args = get_option('c_args')
# Our json library does not support -ffinite-math-only, which is enabled by -Ofast or -ffast-math. # 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.') error('-Ofast, -ffast-math, or -ffinite-math-only is specified in c_args.')
endif endif