Commit 976d99b9 authored by Shenghou Ma's avatar Shenghou Ma

build, cmd/5l: actually report failures for -linkmode tests

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7938046
parent a909e4ba
...@@ -136,9 +136,11 @@ main(int argc, char *argv[]) ...@@ -136,9 +136,11 @@ main(int argc, char *argv[])
if(argc != 1) if(argc != 1)
usage(); usage();
if(linkmode != LinkInternal) { if(linkmode == LinkExternal) {
diag("only -linkmode=internal is supported"); diag("only -linkmode=internal is supported");
errorexit(); errorexit();
} else if(linkmode == LinkAuto) {
linkmode = LinkInternal;
} }
libinit(); libinit();
......
...@@ -79,6 +79,7 @@ go run $GOROOT/test/run.go - . ...@@ -79,6 +79,7 @@ go run $GOROOT/test/run.go - .
[ "$CGO_ENABLED" != 1 ] || [ "$CGO_ENABLED" != 1 ] ||
(xcd ../misc/cgo/test (xcd ../misc/cgo/test
set -e
go test -ldflags '-linkmode=auto' go test -ldflags '-linkmode=auto'
go test -ldflags '-linkmode=internal' go test -ldflags '-linkmode=internal'
case "$GOHOSTOS-$GOARCH" in case "$GOHOSTOS-$GOARCH" in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment