mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
os: TempDir(): obey TMPDIR on unix, TMP on win, etc
Uses upstream go code, lightly adjusted. Adds smoke test.
This commit is contained in:
@@ -56,3 +56,7 @@ func putchar(c byte)
|
||||
func Pipe() (r *File, w *File, err error) {
|
||||
return nil, nil, ErrNotImplemented
|
||||
}
|
||||
|
||||
func tempDir() string {
|
||||
return "/tmp"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user