mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
parent
1561db8ac2
commit
60f97fee2d
@ -390,6 +390,11 @@ 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.
|
||||||
|
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
|
||||||
|
|
||||||
# Disable -Wmaybe-uninitialized when compiling with -Os/-O1/-O3/etc. There are
|
# Disable -Wmaybe-uninitialized when compiling with -Os/-O1/-O3/etc. There are
|
||||||
# too many false positives with gcc >= 8. Effectively, we only test with -O0
|
# too many false positives with gcc >= 8. Effectively, we only test with -O0
|
||||||
# and -O2; this should be enough to catch most important cases without too much
|
# and -O2; this should be enough to catch most important cases without too much
|
||||||
|
Loading…
Reference in New Issue
Block a user