os/os2: wasi target support

This commit is contained in:
Laytan Laats committed 2025-01-18 22:23:44 +01:00
1 parent 47030501ab
commit e4892f1bb2
17 files changed
+1238 -4

No files matched your search

+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()