Address wasi errors

This commit is contained in:
Jeroen van Rijn
2025-10-28 02:39:19 +01:00
parent 4db4c49912
commit fedf9557bb
3 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
#+private
package os2
import "base:runtime"
import "core:slice"
import "base:intrinsics"
import "core:sys/wasm/wasi"

View File

@@ -1,3 +1,4 @@
#+feature global-context
#+private
package os2

View File

@@ -34,7 +34,7 @@ _mkdir_all :: proc(path: string, perm: int) -> Error {
return .Exist
}
clean_path := clean_path(path, temp_allocator)
clean_path := clean_path(path, temp_allocator) or_return
return internal_mkdir_all(clean_path)
internal_mkdir_all :: proc(path: string) -> Error {
@@ -114,3 +114,7 @@ _get_executable_path :: proc(allocator: runtime.Allocator) -> (path: string, err
return concatenate({"/", arg}, allocator)
}
_get_absolute_path :: proc(path: string, allocator: runtime.Allocator) -> (absolute_path: string, err: Error) {
return "", .Unsupported
}