mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:24:49 +01:00
parent
9b415761dd
commit
649aaf4814
24 changed files with 125 additions and 157 deletions
|
|
@ -33,7 +33,7 @@ pub fn main(init: std.process.Init) !void {
|
|||
const arena = init.arena.allocator();
|
||||
const io = init.io;
|
||||
const environ_map = init.environ_map;
|
||||
const cwd_path = try std.process.getCwdAlloc(arena);
|
||||
const cwd_path = try std.process.currentDirAlloc(io, arena);
|
||||
|
||||
try environ_map.put("CLICOLOR_FORCE", "1");
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ pub fn main(init: std.process.Init) !void {
|
|||
const arena = init.arena.allocator();
|
||||
const io = init.io;
|
||||
const environ_map = init.environ_map;
|
||||
const cwd_path = try std.process.getCwdAlloc(arena);
|
||||
const cwd_path = try std.process.currentDirAlloc(io, arena);
|
||||
|
||||
var opt_zig_exe: ?[]const u8 = null;
|
||||
var opt_input_file_name: ?[]const u8 = null;
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ pub fn main(init: std.process.Init) !void {
|
|||
const arena = init.arena.allocator();
|
||||
const io = init.io;
|
||||
const args = try init.minimal.args.toSlice(arena);
|
||||
const cwd_path = try std.process.getCwdAlloc(arena);
|
||||
const cwd_path = try std.process.currentDirAlloc(io, arena);
|
||||
const environ_map = init.environ_map;
|
||||
|
||||
var search_paths = std.array_list.Managed([]const u8).init(arena);
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ pub fn main(init: std.process.Init) !void {
|
|||
const io = init.io;
|
||||
const args = try init.minimal.args.toSlice(arena);
|
||||
const environ_map = init.environ_map;
|
||||
const cwd = try std.process.getCwdAlloc(arena);
|
||||
const cwd = try std.process.currentDirAlloc(io, arena);
|
||||
|
||||
var search_paths = std.array_list.Managed([]const u8).init(arena);
|
||||
var opt_out_dir: ?[]const u8 = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue