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
+1 -1
View File
@@ -81,7 +81,7 @@ _remove_all :: proc(path: string) -> Error {
fullpath, _ := concatenate({path, "/", string(cname), "\x00"}, temp_allocator())
if entry.d_type == .DIR {
_remove_all(fullpath[:len(fullpath)-1])
_remove_all(fullpath[:len(fullpath)-1]) or_return
} else {
if posix.unlink(cstring(raw_data(fullpath))) != .OK {
return _get_platform_error()