From 8996c2106737302ebdf25bf993e1147065114893 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Jun 2021 23:23:27 -0400 Subject: sim: testsuite: setup per-port toolchain settings for multitarget build Gas does not support multitarget builds -- it still only supports a single input & output format. ld is a bit better, but requires manual flags to select the right output. This makes it impossible to run the complete testsuite in a multitarget build. To address this limitation, create a suite of FOR_TARGET variables so these can be set to precompiled as & ld programs. It requires a bit of setup ahead of time, but it's a one-time cost, and makes running the full testsuite at once much easier. --- sim/configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/configure.ac') diff --git a/sim/configure.ac b/sim/configure.ac index 86a800b..0c14b1d 100644 --- a/sim/configure.ac +++ b/sim/configure.ac @@ -103,6 +103,7 @@ m4_define([SIM_TARGET], [dnl $4 ;; esac + SIM_AC_TOOLCHAIN_FOR_TARGET($2) AM_CONDITIONAL([SIM_ENABLE_ARCH_$2], [${sim_enable_arch_$2}]) ]) @@ -151,6 +152,7 @@ if test "${enable_sim}" != no; then done if test "x${enable_example_sims}" = xyes; then + SIM_AC_TOOLCHAIN_FOR_TARGET(example-synacor) SIM_BUILD_TARGET([example-synacor]) fi fi -- cgit v1.1