From 13f35908f730521a4f8b61b19c5e9867a741dbc6 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Sun, 19 Jun 2022 11:05:30 -0700 Subject: [PATCH] Adjust build tags to allow building on tinygo; for #73. --- isatty_bsd.go | 3 ++- isatty_others.go | 5 +++-- isatty_tcgets.go | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/isatty_bsd.go b/isatty_bsd.go index d569c0c..d0ea68f 100644 --- a/isatty_bsd.go +++ b/isatty_bsd.go @@ -1,6 +1,7 @@ -//go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine +//go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo // +build darwin freebsd openbsd netbsd dragonfly hurd // +build !appengine +// +build !tinygo package isatty diff --git a/isatty_others.go b/isatty_others.go index 3150322..7402e06 100644 --- a/isatty_others.go +++ b/isatty_others.go @@ -1,5 +1,6 @@ -//go:build appengine || js || nacl || wasm -// +build appengine js nacl wasm +//go:build (appengine || js || nacl || tinygo || wasm) && !windows +// +build appengine js nacl tinygo wasm +// +build !windows package isatty diff --git a/isatty_tcgets.go b/isatty_tcgets.go index 6778765..0337d8c 100644 --- a/isatty_tcgets.go +++ b/isatty_tcgets.go @@ -1,6 +1,7 @@ -//go:build (linux || aix || zos) && !appengine +//go:build (linux || aix || zos) && !appengine && !tinygo // +build linux aix zos // +build !appengine +// +build !tinygo package isatty