diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-11-17 11:20:17 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-11-17 11:42:22 -0800 |
| commit | d1a88510856c352db84d1b8ffa252c0a9ce30dec (patch) | |
| tree | b76c193cb11f94d1ae7532409e12d2255b43ee41 /tools | |
| parent | 7d395878aa6d662c1880c5b2a7ab76378cc96b7f (diff) | |
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.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-env/env.go | 2 |
1 files changed, 2 insertions, 0 deletions
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}, |
