aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-02 22:40:49 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-02 22:40:49 -0500
commit7c9a934c4d2b519c3f55db51476d376ca1bad8f1 (patch)
tree78682c67adb684a3f20854de97678d354124e2a8 /sim/configure.ac
parent127d167a988ae35488e1c4046ece695f2f27f535 (diff)
downloadfsf-binutils-gdb-7c9a934c4d2b519c3f55db51476d376ca1bad8f1.zip
fsf-binutils-gdb-7c9a934c4d2b519c3f55db51476d376ca1bad8f1.tar.gz
fsf-binutils-gdb-7c9a934c4d2b519c3f55db51476d376ca1bad8f1.tar.bz2
sim: build: add var for tracking sim enable directly
Rather than rely on SIM_SUBDIRS being set, add a dedicated variable to track whether to enable the sim. While the current code works fine, it won't work as we remove the recursive make logic (i.e. the SIM_SUBDIRS variable).
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/configure.ac b/sim/configure.ac
index 8a2082f..45a9e13 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -63,10 +63,12 @@ AC_SUBST(SIM_COMMON_BUILD_TRUE)
AC_SUBST(SIM_COMMON_BUILD_FALSE)
AC_CONFIG_FILES(Make-common.sim:common/Make-common.in)
+ENABLE_SIM=no
dnl Build a particular arch subdir.
dnl arg[1] is the arch subdir name.
dnl arg[2] is whether the arch has a dedicated configure script.
m4_define([SIM_BUILD_TARGET], [dnl
+ ENABLE_SIM=yes
AS_VAR_APPEND([SIM_ENABLED_ARCHES], [" $1"])
m4_if($2, [true], [dnl
AC_CONFIG_SUBDIRS($1)
@@ -165,7 +167,7 @@ if test "${enable_sim}" != no; then
AM_CONDITIONAL([SIM_ENABLE_ARCH_examples], [test "${enable_example_sims}" = "yes"])
fi
AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
-AM_CONDITIONAL([ENABLE_SIM], [test -n "$SIM_SUBDIRS"])
+AM_CONDITIONAL([ENABLE_SIM], [test "$ENABLE_SIM" = "yes"])
dnl Standard (and optional) simulator options.
dnl Eventually all simulators will support these.