diff mbox series

[06/34] configure: move --enable/--disable-debug-info to second option parsing pass

Message ID 20220420153407.73926-7-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series Misc meson conversions for QEMU 7.1 | expand

Commit Message

Paolo Bonzini April 20, 2022, 3:33 p.m. UTC
$debug_info is not needed anywhere except in the final meson invocation,
no need to special case it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Comments

Thomas Huth April 20, 2022, 3:42 p.m. UTC | #1
On 20/04/2022 17.33, Paolo Bonzini wrote:
> $debug_info is not needed anywhere except in the final meson invocation,
> no need to special case it.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   configure | 14 +++++---------
>   1 file changed, 5 insertions(+), 9 deletions(-)
> 
> diff --git a/configure b/configure
> index 48ae18f47f..07053e7b27 100755
> --- a/configure
> +++ b/configure
> @@ -244,7 +244,6 @@ audio_drv_list="default"
>   block_drv_rw_whitelist=""
>   block_drv_ro_whitelist=""
>   host_cc="cc"
> -debug_info="yes"
>   lto="false"
>   stack_protector=""
>   safe_stack=""
> @@ -304,6 +303,7 @@ vhost_user_fs="$default_feature"
>   vhost_vdpa="$default_feature"
>   rdma="$default_feature"
>   pvrdma="$default_feature"
> +debug_info="yes"
>   debug_tcg="no"
>   debug="no"
>   sanitizers="no"
> @@ -379,10 +379,6 @@ for opt do
>     ;;
>     --extra-ldflags=*) EXTRA_LDFLAGS="$EXTRA_LDFLAGS $optarg"
>     ;;
> -  --enable-debug-info) debug_info="yes"
> -  ;;
> -  --disable-debug-info) debug_info="no"
> -  ;;
>     --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --cross-cc-FOO option"
>     ;;
>     --cross-cc-cflags-*) cc_arch=${opt#--cross-cc-cflags-}; cc_arch=${cc_arch%%=*}
> @@ -759,12 +755,12 @@ for opt do
>     ;;
>     --extra-ldflags=*)
>     ;;
> -  --enable-debug-info)
> -  ;;
> -  --disable-debug-info)
> -  ;;
>     --cross-cc-*)
>     ;;
> +  --enable-debug-info) debug_info="yes"
> +  ;;
> +  --disable-debug-info) debug_info="no"
> +  ;;
>     --enable-modules)
>         modules="yes"
>     ;;

Reviewed-by: Thomas Huth <thuth@redhat.com>
Marc-André Lureau April 20, 2022, 4:08 p.m. UTC | #2
On Wed, Apr 20, 2022 at 7:40 PM Paolo Bonzini <pbonzini@redhat.com> wrote:

> $debug_info is not needed anywhere except in the final meson invocation,
> no need to special case it.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>


> ---
>  configure | 14 +++++---------
>  1 file changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/configure b/configure
> index 48ae18f47f..07053e7b27 100755
> --- a/configure
> +++ b/configure
> @@ -244,7 +244,6 @@ audio_drv_list="default"
>  block_drv_rw_whitelist=""
>  block_drv_ro_whitelist=""
>  host_cc="cc"
> -debug_info="yes"
>  lto="false"
>  stack_protector=""
>  safe_stack=""
> @@ -304,6 +303,7 @@ vhost_user_fs="$default_feature"
>  vhost_vdpa="$default_feature"
>  rdma="$default_feature"
>  pvrdma="$default_feature"
> +debug_info="yes"
>  debug_tcg="no"
>  debug="no"
>  sanitizers="no"
> @@ -379,10 +379,6 @@ for opt do
>    ;;
>    --extra-ldflags=*) EXTRA_LDFLAGS="$EXTRA_LDFLAGS $optarg"
>    ;;
> -  --enable-debug-info) debug_info="yes"
> -  ;;
> -  --disable-debug-info) debug_info="no"
> -  ;;
>    --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --cross-cc-FOO
> option"
>    ;;
>    --cross-cc-cflags-*) cc_arch=${opt#--cross-cc-cflags-};
> cc_arch=${cc_arch%%=*}
> @@ -759,12 +755,12 @@ for opt do
>    ;;
>    --extra-ldflags=*)
>    ;;
> -  --enable-debug-info)
> -  ;;
> -  --disable-debug-info)
> -  ;;
>    --cross-cc-*)
>    ;;
> +  --enable-debug-info) debug_info="yes"
> +  ;;
> +  --disable-debug-info) debug_info="no"
> +  ;;
>    --enable-modules)
>        modules="yes"
>    ;;
> --
> 2.35.1
>
>
>
>
diff mbox series

Patch

diff --git a/configure b/configure
index 48ae18f47f..07053e7b27 100755
--- a/configure
+++ b/configure
@@ -244,7 +244,6 @@  audio_drv_list="default"
 block_drv_rw_whitelist=""
 block_drv_ro_whitelist=""
 host_cc="cc"
-debug_info="yes"
 lto="false"
 stack_protector=""
 safe_stack=""
@@ -304,6 +303,7 @@  vhost_user_fs="$default_feature"
 vhost_vdpa="$default_feature"
 rdma="$default_feature"
 pvrdma="$default_feature"
+debug_info="yes"
 debug_tcg="no"
 debug="no"
 sanitizers="no"
@@ -379,10 +379,6 @@  for opt do
   ;;
   --extra-ldflags=*) EXTRA_LDFLAGS="$EXTRA_LDFLAGS $optarg"
   ;;
-  --enable-debug-info) debug_info="yes"
-  ;;
-  --disable-debug-info) debug_info="no"
-  ;;
   --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --cross-cc-FOO option"
   ;;
   --cross-cc-cflags-*) cc_arch=${opt#--cross-cc-cflags-}; cc_arch=${cc_arch%%=*}
@@ -759,12 +755,12 @@  for opt do
   ;;
   --extra-ldflags=*)
   ;;
-  --enable-debug-info)
-  ;;
-  --disable-debug-info)
-  ;;
   --cross-cc-*)
   ;;
+  --enable-debug-info) debug_info="yes"
+  ;;
+  --disable-debug-info) debug_info="no"
+  ;;
   --enable-modules)
       modules="yes"
   ;;