diff options
author | Ayke van Laethem <[email protected]> | 2024-06-27 18:27:28 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2024-06-27 21:11:11 +0200 |
commit | fae0402fdeba8a7d3a2e9b97019aeef7e3fae930 (patch) | |
tree | 2d40a7b1339f764f02f51a8d530e7605a54d8d6a /src/os/file_unix.go | |
parent | 4517a0c17b207957f8c5506032c396f5f34950ba (diff) | |
download | tinygo-fae0402fdeba8a7d3a2e9b97019aeef7e3fae930.tar.gz tinygo-fae0402fdeba8a7d3a2e9b97019aeef7e3fae930.zip |
wasm-unknown: make sure the os package can be imported
See: https://github.com/tinygo-org/tinygo/issues/4314
The os package isn't particularly useful on wasm-unknown, but just like
on baremetal systems it's imported by a lot of packages so it should at
least be possible to import this package.
Diffstat (limited to 'src/os/file_unix.go')
-rw-r--r-- | src/os/file_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/file_unix.go b/src/os/file_unix.go index 25f0266a6..25c2161e3 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -1,4 +1,4 @@ -//go:build darwin || (linux && !baremetal) || wasip1 +//go:build darwin || (linux && !baremetal && !wasm_unknown) || wasip1 // target wasi sets GOOS=linux and thus the +linux build tag, // even though it doesn't show up in "tinygo info target -wasi" |