diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-04-18 23:06:49 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-04-18 23:06:49 -0700 |
| commit | bb9cd6db1cab40d5d5fba7c2ea4fc979efdefa44 (patch) | |
| tree | cd567d917137ffb0a1138f95e71f673b608e2c7b /src/print_env.zig | |
| parent | edb4a07d4ddf01c7f4d589b0f427ba6b9e03134b (diff) | |
| download | zig-bb9cd6db1cab40d5d5fba7c2ea4fc979efdefa44.tar.gz zig-bb9cd6db1cab40d5d5fba7c2ea4fc979efdefa44.zip | |
stage2: Move WASI/Zig-specific selfExePath to introspect.zig
Diffstat (limited to 'src/print_env.zig')
| -rw-r--r-- | src/print_env.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_env.zig b/src/print_env.zig index 15f038c50e..ad772d416b 100644 --- a/src/print_env.zig +++ b/src/print_env.zig @@ -6,7 +6,7 @@ const fatal = @import("main.zig").fatal; pub fn cmdEnv(gpa: Allocator, args: []const []const u8, stdout: std.fs.File.Writer) !void { _ = args; - const self_exe_path = try std.fs.selfExePathAlloc(gpa); + const self_exe_path = try introspect.findZigExePath(gpa); defer gpa.free(self_exe_path); var zig_lib_directory = introspect.findZigLibDirFromSelfExe(gpa, self_exe_path) catch |err| { |
