From 34bc139642b0caed49b2ba2dcb9ccff10e04c55f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Sep 2017 19:16:32 +0200 Subject: sys: compile all supported targets into the package Currently we compile in only GOOS/GOARCH target. Compile in all targets so that they can be selected at runtime. --- sys/sys.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/sys.go') diff --git a/sys/sys.go b/sys/sys.go index f41d68dbc..3138143ff 100644 --- a/sys/sys.go +++ b/sys/sys.go @@ -4,5 +4,14 @@ package sys import ( + "runtime" + + "github.com/google/syzkaller/prog" _ "github.com/google/syzkaller/sys/linux" ) + +func init() { + if err := prog.SetDefaultTarget("linux", runtime.GOARCH); err != nil { + panic(err) + } +} -- cgit mrf-deployment