aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-06-26 15:45:51 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-06-26 15:45:51 +0200
commit9e2843cdfd483b61b2f79cdd0732861a8b67e960 (patch)
tree256e07715b36eeefdcbf75940cd019dde089536a
parent0fd3577a0aa70ff8c044f862978cc7ca846f32d9 (diff)
Makefile: actually cross-compile during presubmit
-rw-r--r--Makefile8
-rw-r--r--executor/stub.go7
2 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e70588452..9611ca05a 100644
--- a/Makefile
+++ b/Makefile
@@ -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