aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-31 02:47:13 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-02 22:59:07 -0400
commitd2a5dbc744548e173ba1687e1a63a8c2196c7122 (patch)
tree938abc91fe47341d9160c16da1745580e0d02b5e /sim/igen
parent70ab6bdd55540779cda498611010b61619f1758a (diff)
downloadfsf-binutils-gdb-d2a5dbc744548e173ba1687e1a63a8c2196c7122.zip
fsf-binutils-gdb-d2a5dbc744548e173ba1687e1a63a8c2196c7122.tar.gz
fsf-binutils-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.mk11
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 \