|
if (std.Target.current.os.tag == .wasi) { |
|
// https://github.com/ziglang/zig/issues/5437 |
|
return error.SkipZigTest; |
|
} |
(there are several more instances in this file)
WASI is capable of passing these tests if we improve the cache hash API to use directory handles and somehow avoid using absolute paths. I'm not sure how to accomplish that, however, it's worth looking into. It does look like it would be possible to implement realpathat on Linux. I wonder if it is possible to implement realpathat on other operating systems.
zig/lib/std/cache_hash.zig
Lines 537 to 540 in 49f3def
(there are several more instances in this file)
WASI is capable of passing these tests if we improve the cache hash API to use directory handles and somehow avoid using absolute paths. I'm not sure how to accomplish that, however, it's worth looking into. It does look like it would be possible to implement
realpathaton Linux. I wonder if it is possible to implementrealpathaton other operating systems.