diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-06-26 15:45:51 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-06-26 15:45:51 +0200 |
| commit | 9e2843cdfd483b61b2f79cdd0732861a8b67e960 (patch) | |
| tree | 256e07715b36eeefdcbf75940cd019dde089536a | |
| parent | 0fd3577a0aa70ff8c044f862978cc7ca846f32d9 (diff) | |
Makefile: actually cross-compile during presubmit
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | executor/stub.go | 7 |
2 files changed, 11 insertions, 4 deletions
@@ -83,10 +83,10 @@ presubmit: $(MAKE) generate $(MAKE) format $(MAKE) executor - ARCH=amd64 go install ./... - ARCH=arm64 go install ./... - ARCH=ppc64le go install ./... - GOOS=darwin go build -o /dev/null ./syz-manager + GOOS=linux GOARCH=amd64 go install ./... + GOOS=linux GOARCH=arm64 go install ./... + GOOS=linux GOARCH=ppc64le go install ./... + GOOS=darwin GOARCH=amd64 go build -o /dev/null ./syz-manager go test -short ./... echo LGTM diff --git a/executor/stub.go b/executor/stub.go new file mode 100644 index 000000000..a85683ee3 --- /dev/null +++ b/executor/stub.go @@ -0,0 +1,7 @@ +// Copyright 2017 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +// Just to make cross-compilation tests work, +// otherwise they fail with "no buildable Go source files" + +package executor |
