diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 13:34:38 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-08 00:57:58 -0400 |
commit | a55b92be28bab98a2acae597cbd365eb53b5faf3 (patch) | |
tree | 2f0c4394cb0fbbf586f645cfc931e690d725187c /sim/common | |
parent | d20bc122888f03a2d2a5a9162f6287de5a79a8f9 (diff) | |
download | gdb-a55b92be28bab98a2acae597cbd365eb53b5faf3.zip gdb-a55b92be28bab98a2acae597cbd365eb53b5faf3.tar.gz gdb-a55b92be28bab98a2acae597cbd365eb53b5faf3.tar.bz2 |
sim: igen: harmonize tool variables
Separate the name of the igen program from the options used to run it.
This allows us to avoid duplicating ../igen/igen in Makefiles and reuse
the existing setting in the common Makefile. This also allows us to
easily harmonize the use of EXEEXT between igen/local.mk and the common
makefiles when cross-compiling for e.g. Windows.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/Make-common.in | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ac34874..576b02f 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2021-06-08 Mike Frysinger <vapier@gentoo.org> + + * Make-common.in (IGEN_RUN): New variable. + (IGEN): Remove ASAN_OPTIONS. + 2021-06-05 Mike Frysinger <vapier@gentoo.org> * Make-common.in (COMMON_OBJS): Define. diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index b17b2e0..f32026e 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -117,7 +117,8 @@ POSTCOMPILE = @true # igen leaks memory, and therefore makes AddressSanitizer unhappy. Disable # leak detection while running it. -IGEN = ASAN_OPTIONS=detect_leaks=0 ../igen/igen +IGEN = ../igen/igen$(EXEEXT) +IGEN_RUN = ASAN_OPTIONS=detect_leaks=0 $(IGEN) # Each simulator's Makefile.in defines one or more of these variables # to override our settings as necessary. There is no need to define these |