os/os2: wasi target support

This commit is contained in:
Laytan Laats
2025-01-18 22:23:44 +01:00
parent 47030501ab
commit e4892f1bb2
17 changed files with 1238 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
#+private
package os2
import "base:runtime"
_temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Error) {
// NOTE: requires user to add /tmp to their preopen dirs, no standard way exists.
return clone_string("/tmp", allocator)
}