| author | |
| committer | |
| log | db8eae65dece402438e5e48dd0d1c8c4fc8f5b1c |
| tree | 864660f6a248cef8e320d1935385671a98b2d0eb |
| parent | 8cebbc352ab7ec324891fec222f317f02aba45d7 |
1 files changed, 4 insertions(+), 1 deletions(-)
lib/std/process.zig+4-1| ... | ... | @@ -800,7 +800,10 @@ pub fn getSelfExeSharedLibPaths(allocator: *Allocator) error{OutOfMemory}![][:0] |
| 800 | 800 | } |
| 801 | 801 | |
| 802 | 802 | /// Tells whether calling the `execv` or `execve` functions will be a compile error. |
| 803 | pub const can_execv = std.builtin.os.tag != .windows; | |
| 803 | pub const can_execv = switch (builtin.os.tag) { | |
| 804 | .windows, .haiku => false, | |
| 805 | else => true, | |
| 806 | }; | |
| 804 | 807 | |
| 805 | 808 | pub const ExecvError = std.os.ExecveError || error{OutOfMemory}; |
| 806 | 809 |