public inbox for
 help / color / mirror / Atom feed
* [PATCH] sim: build: add var for tracking sim enable directly
@ 2023-01-03  3:43 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-01-03  3:43 UTC (permalink / raw)
  To: gdb-patches

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).
 sim/configure    | 99 ++++++++++++++++++++++++++++++++----------------
 sim/ |  4 +-
 2 files changed, 69 insertions(+), 34 deletions(-)

diff --git a/sim/ b/sim/
index 8a2082f0a4dc..45a9e1303045 100644
--- a/sim/
+++ b/sim/
@@ -63,10 +63,12 @@ AC_SUBST(SIM_COMMON_BUILD_TRUE)
 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
   m4_if($2, [true], [dnl
@@ -165,7 +167,7 @@ if test "${enable_sim}" != no; then
   AM_CONDITIONAL([SIM_ENABLE_ARCH_examples], [test "${enable_example_sims}" = "yes"])
 AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
 dnl Standard (and optional) simulator options.
 dnl Eventually all simulators will support these.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-03  3:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03  3:43 [PATCH] sim: build: add var for tracking sim enable directly Mike Frysinger

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 read-only IMAP folder(s) and NNTP newsgroup(s).