From 4b69c3cbaccd51b7ea719e7bd756d680e825988d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Mar 2019 20:36:03 +0100 Subject: pkg/runtest: make tests pass on freebsd The problem is stupid: should be included as on freebsd. Pass actual host OS to executor build as HOSTGOOS and use it to figure out how we should include this header. --- pkg/csource/common.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/csource/common.go') diff --git a/pkg/csource/common.go b/pkg/csource/common.go index 56d6a6de7..07f7c40de 100644 --- a/pkg/csource/common.go +++ b/pkg/csource/common.go @@ -8,6 +8,7 @@ package csource import ( "bytes" "fmt" + "runtime" "sort" "strings" @@ -70,6 +71,7 @@ func defineList(p, mmapProg *prog.Prog, opts Options) (defines []string) { enabled := map[string]bool{ "GOOS_" + p.Target.OS: true, "GOARCH_" + p.Target.Arch: true, + "HOSTGOOS_" + runtime.GOOS: true, "SYZ_USE_BITMASKS": bitmasks, "SYZ_USE_CHECKSUMS": csums, "SYZ_SANDBOX_NONE": opts.Sandbox == sandboxNone, -- cgit mrf-deployment