mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
build: fix the description of the named_install step
Replace the description of the named_install step from "Install {s} to zig-cache/bin" to "Copy {s} to prefix path". The latter has been adapded from the description of the builtin install step. Ad an empty line before the build_step variable, in order to improve readability. Closes #213
This commit is contained in:
parent
36e3f577ca
commit
75a1600626
1 changed files with 2 additions and 2 deletions
|
@ -549,8 +549,8 @@ pub fn build(b: *Build) !void {
|
||||||
const file_path = std.fs.path.join(b.allocator, &[_][]const u8{
|
const file_path = std.fs.path.join(b.allocator, &[_][]const u8{
|
||||||
if (use_healed) "patches/healed" else "exercises", ex.main_file,
|
if (use_healed) "patches/healed" else "exercises", ex.main_file,
|
||||||
}) catch unreachable;
|
}) catch unreachable;
|
||||||
const build_step = b.addExecutable(.{ .name = base_name, .root_source_file = .{ .path = file_path } });
|
|
||||||
|
|
||||||
|
const build_step = b.addExecutable(.{ .name = base_name, .root_source_file = .{ .path = file_path } });
|
||||||
build_step.install();
|
build_step.install();
|
||||||
|
|
||||||
const verify_step = ZiglingStep.create(b, ex, use_healed);
|
const verify_step = ZiglingStep.create(b, ex, use_healed);
|
||||||
|
@ -561,7 +561,7 @@ pub fn build(b: *Build) !void {
|
||||||
const run_step = build_step.run();
|
const run_step = build_step.run();
|
||||||
named_test.dependOn(&run_step.step);
|
named_test.dependOn(&run_step.step);
|
||||||
|
|
||||||
const named_install = b.step(b.fmt("{s}_install", .{key}), b.fmt("Install {s} to zig-cache/bin", .{ex.main_file}));
|
const named_install = b.step(b.fmt("{s}_install", .{key}), b.fmt("Copy {s} to prefix path", .{ex.main_file}));
|
||||||
named_install.dependOn(&build_step.install_step.?.step);
|
named_install.dependOn(&build_step.install_step.?.step);
|
||||||
|
|
||||||
const named_verify = b.step(key, b.fmt("Check {s} only", .{ex.main_file}));
|
const named_verify = b.step(key, b.fmt("Check {s} only", .{ex.main_file}));
|
||||||
|
|
Loading…
Reference in a new issue