Skip to content

Commit dd1b4c2

Browse files
authored
Merge pull request #1388 from flavio/add-wasip1-support
2 parents 8ffd87d + 032a334 commit dd1b4c2

3 files changed

+18
-0
lines changed

terminal_check_unix.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
//go:build (linux || aix || zos) && !js && !wasi
12
// +build linux aix zos
23
// +build !js
4+
// +build !wasi
35

46
package logrus
57

terminal_check_wasi.go

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//go:build wasi
2+
// +build wasi
3+
4+
package logrus
5+
6+
func isTerminal(fd int) bool {
7+
return false
8+
}

terminal_check_wasip1.go

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//go:build wasip1
2+
// +build wasip1
3+
4+
package logrus
5+
6+
func isTerminal(fd int) bool {
7+
return false
8+
}

0 commit comments

Comments
 (0)