From 9e2843cdfd483b61b2f79cdd0732861a8b67e960 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 26 Jun 2017 15:45:51 +0200 Subject: Makefile: actually cross-compile during presubmit --- Makefile | 8 ++++---- executor/stub.go | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 executor/stub.go 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 -- cgit mrf-deployment