]> git.ipfire.org Git - thirdparty/qemu.git/commit - meson.build
meson: support meson 0.64 -Doptimization=plain
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2022 12:07:23 +0000 (13:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jan 2023 23:51:02 +0000 (00:51 +0100)
commit6a97f3939240977e66e90862419911666956a76a
treeb79224d174c742c235e2092e414cc1928caa6cdf
parentca9b5c2ebf1aca87677a24c208bf3d0345c0b1aa
meson: support meson 0.64 -Doptimization=plain

In Meson 0.64, the optimization built-in option now accepts the "plain" value,
which will not set any optimization flags.  While QEMU does not check the
contents of the option and therefore does not suffer any ill effect
from the new value, it uses get_option to print the optimization flags
in the summary.  Clean the code up to remove duplication, and check for
-Doptimization=plain at the same time.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build