Use launcher script to run smalltalk default tip
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 12 Feb 2020 15:09:57 +0000
changeset 318 1b735d3747d8
parent 317 a462cd3ed353
Use launcher script to run smalltalk ...rather than binary. This makes it work in both, in-tree builds and (new) out-of-tree builds.
s/stx/benchmark-runner.sh
--- a/s/stx/benchmark-runner.sh	Sat Jan 25 22:15:10 2020 +0000
+++ b/s/stx/benchmark-runner.sh	Wed Feb 12 15:09:57 2020 +0000
@@ -9,6 +9,13 @@
 VM_OPTS=
 VM=$TOP/stx/projects/smalltalk/stx
 
+if [ ! -x "$VM" ]; then
+	if [ -x "$TOP/../config.guess" ]; then
+		VM=$TOP/stx/projects/smalltalk/build/$($TOP/../config.guess)/stx
+	fi
+fi
+
+
 # On Windows use stx.com rather than stx.exe as exe has co
 # console output