aboutsummaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-12-17 09:51:55 -0800
committerRuss Cox <rsc@golang.org>2010-12-17 09:51:55 -0800
commit0cd34753866bf6114df91d074f9e344cfd17aa1d (patch)
tree2e5575258a448326a6c29720acd9d57b8e89e9ff /src/run.bash
parenta890d70cc1fff8513d89e88b7028132f6df40b42 (diff)
downloadgo-0cd34753866bf6114df91d074f9e344cfd17aa1d.tar.xz
misc/cgo/life: fix, add to build
#pragma dynexport is no longer needed for this use of cgo, since the gcc and gc code are now linked together into the same binary. It may still be necessary later. On the Mac, you cannot use the GOT to resolve symbols that exist in the current binary, so 6l and 8l translate the GOT-loading mov instructions into lea instructions. On ELF systems, we could use the GOT for those symbols, but for consistency 6l and 8l apply the same translation. The translation is sketchy in the extreme (depending on the relocation being in a mov instruction) but it verifies that the instruction is a mov before rewriting it to lea. Also makes typedefs global across files. Fixes #1335. Fixes #1345. R=iant, r CC=golang-dev https://golang.org/cl/3650042
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/run.bash b/src/run.bash
index 4455d2736e..0cd129253c 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -84,6 +84,14 @@ if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
fi
) || exit $?
+[ "$GOARCH" == arm ] ||
+(xcd ../misc/cgo/life
+if [[ $(uname | tr A-Z a-z | sed 's/mingw/windows/') != *windows* ]]; then
+ gomake clean
+ ./test.bash
+fi
+) || exit $?
+
(xcd pkg/exp/ogle
gomake clean
time gomake ogle