summaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-15 23:23:46 -0500
committerMike Frysinger <vapier@gentoo.org>2021-02-13 12:14:25 -0500
commitb0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f (patch)
tree34ebe2fe8d8242fda066324c3039ffc5fb816398 /sim/testsuite/cris/c
parent9ee455572d97fd8ce458a6df523c447e85dc3edf (diff)
downloadbinutils-gdb-b0dcd7d832e33240a9c8c1ed3d8d4636acfd8c4f.tar.gz
sim: testsuite: push $arch out to targets
This is needed to move to automake & its dejagnu-provided logic, and eventually by the unified sim logic. The $arch is used only to figure out which `run` program to use when running tests, and as we move to a single top-level build, we can delete this and use sim/run directly.
Diffstat (limited to 'sim/testsuite/cris/c')
-rw-r--r--sim/testsuite/cris/c/c.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/testsuite/cris/c/c.exp b/sim/testsuite/cris/c/c.exp
index 08ea18812ec..3d493b7c144 100644
--- a/sim/testsuite/cris/c/c.exp
+++ b/sim/testsuite/cris/c/c.exp
@@ -19,6 +19,10 @@ if ![istarget cris*-*-*] {
return
}
+# Used to locate the `run` program.
+global arch
+set arch "cris"
+
set CFLAGS_FOR_TARGET "-O2"
if [istarget cris-*-*] {
set mach "crisv10"