[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] configure: Restrict TCG to emulation
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 1/4] configure: Restrict TCG to emulation |
Date: |
Fri, 4 Feb 2022 16:29:21 +0100 |
If we don't need to emulate any target, we certainly don't need TCG.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
configure | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 9f40d60196..4002f81ac9 100755
--- a/configure
+++ b/configure
@@ -370,7 +370,7 @@ slirp="auto"
default_devices="true"
# 3. Automatically enable/disable other options
-tcg="enabled"
+tcg="auto"
cfi="false"
# 4. Detection partly done in configure
@@ -1777,7 +1777,7 @@ EOF
fi
fi
-if test "$tcg" = "enabled"; then
+if test "$tcg" != "disabled"; then
git_submodules="$git_submodules tests/fp/berkeley-testfloat-3"
git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
fi
@@ -1819,6 +1819,14 @@ case " $target_list " in
;;
esac
+if test "$tcg" = "auto"; then
+ if test -z "$target_list"; then
+ tcg="disabled"
+ else
+ tcg="enabled"
+ fi
+fi
+
feature_not_found() {
feature=$1
remedy=$2
--
2.34.1