aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure11
1 files changed, 9 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index 72b7ac6..1aea893 100755
--- a/sim/configure
+++ b/sim/configure
@@ -1288,7 +1288,7 @@ case "${target}" in
d30v-*-*)
sim_target=d30v
only_if_gcc=yes
- extra_subdirs="${extra_subdirs} igen testsuite"
+ extra_subdirs="${extra_subdirs} igen"
;;
# end-sanitize-d30v
h8300*-*-*) sim_target=h8300 ;;
@@ -1343,7 +1343,6 @@ case "${target}" in
v850eq-*-*)
# The V850 simulator can only be compiled by gcc.
sim_target=v850
- extra_subdirs="${extra_subdirs} igen"
only_if_gcc=yes
;;
# end-sanitize-v850eq
@@ -1367,6 +1366,14 @@ case "${target}" in
*) sim_target=none ;;
esac
+
+# Is there a testsuite directory for the target?
+testdir=`echo ${target} | sed -e 's/-.*-/-/'`
+if test -r ${srcdir}/testsuite/${testdir}/configure ; then
+ extra_subdirs="${extra_subdirs} testsuite"
+fi
+
+
case "${enable_sim}" in
no) sim_target=none ;;
yes)