Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added executable bit
Browse files Browse the repository at this point in the history
OneAvargeCoder193 committed Jun 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 16810ba commit 7f75bcd
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/archive.zig
Original file line number Diff line number Diff line change
@@ -28,5 +28,5 @@ pub fn decompress_tar_xz(zip_path: []const u8, output_dir: []const u8) !void {
var xz_decompress = try compress.xz.decompress(std.heap.page_allocator, tar_file.reader());
defer xz_decompress.deinit();

try std.tar.pipeToFileSystem(output_dir_handle, xz_decompress.reader(), .{.mode_mode = .ignore});
try std.tar.pipeToFileSystem(output_dir_handle, xz_decompress.reader(), .{});
}
5 changes: 4 additions & 1 deletion src/gui/windows/main.zig
Original file line number Diff line number Diff line change
@@ -111,13 +111,16 @@ pub fn play(_:usize) void {
std.log.err("Error extracting the compiler: {}\n", .{err});
return;
};

var commandBuf: [1024]u8 = undefined;
const command = std.fmt.bufPrint(&commandBuf, "./compiler/zig-{s}-{s}-{s}/zig", .{@tagName(builtin.target.os.tag), @tagName(builtin.target.cpu.arch), ver}) catch |err| {
std.log.err("Error creating the run command: {}\n", .{err});
return;
};

const file = dir.dir.openDir();
_ = file;

const argv = [_][]const u8{command, "build", "run", "-Doptimize=ReleaseSafe"};
var proc = std.process.Child.init(&argv, main.stackAllocator.allocator);
proc.cwd_dir = dir.dir;

0 comments on commit 7f75bcd

Please sign in to comment.