diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-13 20:40:27 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 16:02:37 +0200 |
| commit | f7b1163afba16b6266423f3661ccad8a329f7754 (patch) | |
| tree | c14961e90521bb89a714a5b9ddb64f918c313701 /tools/syz-execprog | |
| parent | 34bc139642b0caed49b2ba2dcb9ccff10e04c55f (diff) | |
syz-manager/mgrconfig: explicitly specify target in config
Add target config parameter (e.g. linux/amd64) which controls target OS/arch.
No more explicit assumptions about target.
Diffstat (limited to 'tools/syz-execprog')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 1bedc09ea..37360c7f0 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -13,6 +13,7 @@ import ( "io/ioutil" "os" "os/signal" + "runtime" "sync" "sync/atomic" "syscall" @@ -45,6 +46,10 @@ func main() { os.Exit(1) } + if err := prog.SetDefaultTarget(runtime.GOOS, runtime.GOARCH); err != nil { + Fatalf("%v", err) + } + var progs []*prog.Prog for _, fn := range flag.Args() { data, err := ioutil.ReadFile(fn) |
