mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
zig build: fix logic for extracting executable file from Compilation
This commit is contained in:
parent
3b36c4d0b3
commit
3262e9ccee
@ -5478,10 +5478,12 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi
|
||||
error.SemanticAnalyzeFail => process.exit(2),
|
||||
else => |e| return e,
|
||||
};
|
||||
try comp.makeBinFileExecutable();
|
||||
|
||||
const emit = comp.bin_file.?.emit;
|
||||
child_argv.items[argv_index_exe] = try emit.directory.join(arena, &.{emit.sub_path});
|
||||
// Since incremental compilation isn't done yet, we use cache_mode = whole
|
||||
// above, and thus the output file is already closed.
|
||||
//try comp.makeBinFileExecutable();
|
||||
child_argv.items[argv_index_exe] =
|
||||
try local_cache_directory.join(arena, &.{comp.cache_use.whole.bin_sub_path.?});
|
||||
|
||||
break :argv child_argv.items;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user