aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-23 23:23:27 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-28 21:55:15 -0500
commit8996c2106737302ebdf25bf993e1147065114893 (patch)
tree4a0bb2d86db4bf048e71471eb151284c3c96d4d6 /sim/configure.ac
parentdba322be6e2cde20766c1b086ef492c0af2b3ae1 (diff)
downloadfsf-binutils-gdb-8996c2106737302ebdf25bf993e1147065114893.zip
fsf-binutils-gdb-8996c2106737302ebdf25bf993e1147065114893.tar.gz
fsf-binutils-gdb-8996c2106737302ebdf25bf993e1147065114893.tar.bz2
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.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac2
1 files changed, 2 insertions, 0 deletions
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