[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/17] configure: clean up handling of CFI option
From: |
Paolo Bonzini |
Subject: |
[PATCH 04/17] configure: clean up handling of CFI option |
Date: |
Mon, 16 Oct 2023 08:31:14 +0200 |
Avoid that --enable-cfi --disable-cfi leaves b_lto set to true.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
configure | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index bce8c57596f..3da46ed202d 100755
--- a/configure
+++ b/configure
@@ -766,11 +766,9 @@ for opt do
;;
--disable-werror) werror="no"
;;
- --enable-cfi)
- cfi="true";
- meson_option_add -Db_lto=true
+ --enable-cfi) cfi=true
;;
- --disable-cfi) cfi="false"
+ --disable-cfi) cfi=false
;;
--disable-download) download="disabled"; git_submodules_action=validate;
;;
@@ -1845,6 +1843,7 @@ if test "$skip_meson" = no; then
# QEMU options
test "$cfi" != false && meson_option_add "-Dcfi=$cfi"
+ test "$cfi" != false && meson_option_add "-Db_lto=$cfi"
test "$docs" != auto && meson_option_add "-Ddocs=$docs"
test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add
"-Dfuzzing_engine=$LIB_FUZZING_ENGINE"
test "$plugins" = yes && meson_option_add "-Dplugins=true"
--
2.41.0
- [PATCH 00/17] More build system cleanups, optional non-relocatable installs, Paolo Bonzini, 2023/10/16
- [PATCH 02/17] meson: do not use set10, Paolo Bonzini, 2023/10/16
- [PATCH 03/17] meson, cutils: allow non-relocatable installs, Paolo Bonzini, 2023/10/16
- [PATCH 01/17] meson: do not build shaders by default, Paolo Bonzini, 2023/10/16
- [PATCH 05/17] hw/xen: cleanup sourcesets, Paolo Bonzini, 2023/10/16
- [PATCH 04/17] configure: clean up handling of CFI option,
Paolo Bonzini <=
- [PATCH 08/17] configure, tests/tcg: simplify GDB conditionals, Paolo Bonzini, 2023/10/16
- [PATCH 07/17] tests/tcg/arm: move non-SVE tests out of conditional, Paolo Bonzini, 2023/10/16
- [PATCH 10/17] configure: clean up PIE option handling, Paolo Bonzini, 2023/10/16
- [PATCH 06/17] hw/remote: move stub vfu_object_set_bus_irq out of stubs/, Paolo Bonzini, 2023/10/16
- [PATCH 09/17] configure: clean up plugin option handling, Paolo Bonzini, 2023/10/16
- [PATCH 11/17] configure: remove some dead cruft, Paolo Bonzini, 2023/10/16