mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Cli: Add zig compiler color
The compiler doesn't pass color to the parent process unless it is called with `--colour on`. This commit adds those arguments to add support for coloring in compiler outputs.
This commit is contained in:
parent
646c45ea65
commit
19c04f1482
@ -62,7 +62,7 @@ pub fn run(
|
|||||||
var install_argv = std.ArrayList([]const u8).init(allocator);
|
var install_argv = std.ArrayList([]const u8).init(allocator);
|
||||||
defer install_argv.deinit();
|
defer install_argv.deinit();
|
||||||
|
|
||||||
try install_argv.appendSlice(&[_][]const u8{ "zig", "build" });
|
try install_argv.appendSlice(&[_][]const u8{ "zig", "build", "--color", "on" });
|
||||||
|
|
||||||
switch (builtin.os.tag) {
|
switch (builtin.os.tag) {
|
||||||
.windows => try tar_argv.appendSlice(&[_][]const u8{
|
.windows => try tar_argv.appendSlice(&[_][]const u8{
|
||||||
|
@ -63,10 +63,11 @@ pub fn run(
|
|||||||
);
|
);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
// TODO: Catch this error instead of propagating
|
||||||
try util.runCommand(
|
try util.runCommand(
|
||||||
allocator,
|
allocator,
|
||||||
realpath,
|
realpath,
|
||||||
&[_][]const u8{ "zig", "build", "-Djetzig_runner=true", "install" },
|
&[_][]const u8{ "zig", "build", "-Djetzig_runner=true", "install", "--color", "on" },
|
||||||
);
|
);
|
||||||
|
|
||||||
const exe_path = try util.locateExecutable(allocator, cwd, .{});
|
const exe_path = try util.locateExecutable(allocator, cwd, .{});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user