diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 02:47:13 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-02 22:59:07 -0400 |
commit | d2a5dbc744548e173ba1687e1a63a8c2196c7122 (patch) | |
tree | 938abc91fe47341d9160c16da1745580e0d02b5e /sim/igen | |
parent | 70ab6bdd55540779cda498611010b61619f1758a (diff) | |
download | gdb-d2a5dbc744548e173ba1687e1a63a8c2196c7122.zip gdb-d2a5dbc744548e173ba1687e1a63a8c2196c7122.tar.gz gdb-d2a5dbc744548e173ba1687e1a63a8c2196c7122.tar.bz2 |
sim: hoist mn10300 & v850 igen rules up to common builds
These rules don't depend on the target compiler settings, so hoist
the build logic up to the common builds for better parallelization.
We leave the mips rules in place as they depend on complicated
arch-specific configure logic that needs to be untangled first.
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/local.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sim/igen/local.mk b/sim/igen/local.mk index a7e2786..3e3219c 100644 --- a/sim/igen/local.mk +++ b/sim/igen/local.mk @@ -19,12 +19,17 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# igen leaks memory, and therefore makes AddressSanitizer unhappy. Disable +# leak detection while running it. +IGEN = %D%/igen$(EXEEXT) +IGEN_RUN = ASAN_OPTIONS=detect_leaks=0 $(IGEN) + # This makes sure igen is available before building the arch-subdirs which # need to run the igen tool. -SIM_ALL_RECURSIVE_DEPS += igen/igen$(EXEEXT) +SIM_ALL_RECURSIVE_DEPS += $(IGEN) # Alias for developers. -igen: %D%/igen$(EXEEXT) +igen: $(IGEN) noinst_LIBRARIES += %D%/libigen.a %C%_libigen_a_SOURCES = \ @@ -84,7 +89,7 @@ igen/libigen.a: $(igen_libigen_a_OBJECTS) $(igen_libigen_a_DEPENDENCIES) $(EXTRA %C%_table_LDADD = %D%/table-main.o %D%/libigen.a %C%_IGEN_TOOLS = \ - %D%/igen \ + $(IGEN) \ %D%/filter \ %D%/gen \ %D%/ld-cache \ |