[PATCH v3 02/12] configure: Avoid building TCG when not needed

Philippe Mathieu-Daudé posted 12 patches 5 years, 9 months ago
There is a newer version of this series
[PATCH v3 02/12] configure: Avoid building TCG when not needed
Posted by Philippe Mathieu-Daudé 5 years, 9 months ago
Avoid building TCG when building only tools:

  ./configure --enable-tools --disable-system --disable-user

This saves us from running the soft-float tests enabled since
commit 76170102508.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 23b5e93752..e3b4afbb60 100755
--- a/configure
+++ b/configure
@@ -1663,6 +1663,10 @@ if [ "$ARCH" = "unknown" ]; then
   linux_user="no"
 fi
 
+if [ "$bsd_user" = "no" -a "$linux_user" = "no" -a "$softmmu" = "no" ] ; then
+  tcg="no"
+fi
+
 default_target_list=""
 
 mak_wilds=""
-- 
2.21.3


Re: [PATCH v3 02/12] configure: Avoid building TCG when not needed
Posted by Alistair Francis 5 years, 9 months ago
On Mon, May 4, 2020 at 8:29 AM Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> Avoid building TCG when building only tools:
>
>   ./configure --enable-tools --disable-system --disable-user
>
> This saves us from running the soft-float tests enabled since
> commit 76170102508.
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  configure | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/configure b/configure
> index 23b5e93752..e3b4afbb60 100755
> --- a/configure
> +++ b/configure
> @@ -1663,6 +1663,10 @@ if [ "$ARCH" = "unknown" ]; then
>    linux_user="no"
>  fi
>
> +if [ "$bsd_user" = "no" -a "$linux_user" = "no" -a "$softmmu" = "no" ] ; then
> +  tcg="no"
> +fi
> +
>  default_target_list=""
>
>  mak_wilds=""
> --
> 2.21.3
>
>