syzkaller/sys/sys.go
Dmitry Vyukov 34bc139642 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.
2017-09-15 16:02:37 +02:00

18 lines
385 B
Go

// 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.
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)
}
}