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.
This commit is contained in:
Ayke van Laethem
2024-06-27 18:27:28 +02:00
committed by Ayke
parent 4517a0c17b
commit fae0402fde
16 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build baremetal || js
//go:build baremetal || js || wasm_unknown
package runtime
-2
View File
@@ -23,8 +23,6 @@ func init() {
__wasm_call_ctors()
}
var args []string
func ticksToNanoseconds(ticks timeUnit) int64 {
return int64(ticks)
}