diff --git a/core/os/os2/dir_wasi.odin b/core/os/os2/dir_wasi.odin index 61c005674..9804f07fd 100644 --- a/core/os/os2/dir_wasi.odin +++ b/core/os/os2/dir_wasi.odin @@ -1,7 +1,6 @@ #+private package os2 -import "base:runtime" import "core:slice" import "base:intrinsics" import "core:sys/wasm/wasi" diff --git a/core/os/os2/file_wasi.odin b/core/os/os2/file_wasi.odin index 1d417ffb1..f3dbcf660 100644 --- a/core/os/os2/file_wasi.odin +++ b/core/os/os2/file_wasi.odin @@ -1,3 +1,4 @@ +#+feature global-context #+private package os2 diff --git a/core/os/os2/path_wasi.odin b/core/os/os2/path_wasi.odin index b8240e188..f26e16158 100644 --- a/core/os/os2/path_wasi.odin +++ b/core/os/os2/path_wasi.odin @@ -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 +}