From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [PATCH 1/3] configure: Do not build TCG if not necessary
Date: Wed, 20 Jan 2021 16:19:14 +0100 [thread overview]
Message-ID: <20210120151916.1167448-2-philmd@redhat.com> (raw)
In-Reply-To: <20210120151916.1167448-1-philmd@redhat.com>
We don't want to check/build TCG when no system/user emulation
is requested. This is useful in particular when building only:
- tools
- documentation
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
configure | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 9f016b06b54..012c527e3cd 100755
--- a/configure
+++ b/configure
@@ -337,7 +337,7 @@ linux_io_uring="$default_feature"
cap_ng="auto"
attr="auto"
xfs="$default_feature"
-tcg="enabled"
+tcg="auto"
membarrier="$default_feature"
vhost_net="$default_feature"
vhost_crypto="$default_feature"
@@ -2282,6 +2282,15 @@ case " $target_list " in
;;
esac
+if [ "$tcg" = "auto" ]; then
+ # if neither system nor user emulation requested, no need to build TCG
+ if [ "$softmmu" = "no" ] && [ "$linux_user" = "no" ] && [ "$bsd_user" = "no" ]; then
+ tcg="disabled"
+ else
+ tcg="enabled"
+ fi
+fi
+
feature_not_found() {
feature=$1
remedy=$2
--
2.26.2
next prev parent reply other threads:[~2021-01-20 15:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 15:19 [PATCH 0/3] configure: Do not build TCG or link with capstone if not necessary Philippe Mathieu-Daudé
2021-01-20 15:19 ` Philippe Mathieu-Daudé [this message]
2021-01-20 15:19 ` [PATCH 2/3] configure: Do not build/check for capstone when emulation is disabled Philippe Mathieu-Daudé
2021-01-20 15:19 ` [PATCH 3/3] configure: Emit warning when accelerator requested but not needed Philippe Mathieu-Daudé
2021-01-20 16:33 ` Thomas Huth
2021-01-20 17:00 ` Philippe Mathieu-Daudé
2021-01-20 16:46 ` [PATCH 0/3] configure: Do not build TCG or link with capstone if not necessary Paolo Bonzini
2021-01-20 17:02 ` Philippe Mathieu-Daudé
2021-01-20 17:35 ` Paolo Bonzini
2021-01-22 16:02 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210120151916.1167448-2-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).