From d1a88510856c352db84d1b8ffa252c0a9ce30dec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 17 Nov 2018 11:20:17 -0800 Subject: sys/targest: introduce target.BuildOS We can't cross-compile native binaries from just any OS to any other. For most OSes we can do only native compilation. Some can only be compiled from linux. To date we avoided this problem completely (mostly assumed linux build OS). Make this notion of what can build what explicit. --- tools/syz-env/env.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/syz-env/env.go b/tools/syz-env/env.go index 775f05ca2..a5fc4fbb1 100644 --- a/tools/syz-env/env.go +++ b/tools/syz-env/env.go @@ -29,6 +29,8 @@ func main() { Val string } vars := []Var{ + {"BUILDOS", runtime.GOOS}, + {"NATIVEBUILDOS", target.BuildOS}, {"HOSTOS", hostOS}, {"HOSTARCH", hostArch}, {"TARGETOS", targetOS}, -- cgit mrf-deployment