build: fix zig build -Dhealed install
The command fails because the path to the exercises directory was
incorrectly set to "exercises" instead of `work_path`.
The bug was introduced in commit b56bb7b
(build: enable full parallelism when -Dhealed is set).
Remove the comment about not using multi-object loop, since it is
confusing.
This commit is contained in:
parent
dbd42bb648
commit
fb5b04f374
1 changed files with 1 additions and 3 deletions
|
|
@ -198,11 +198,9 @@ pub fn build(b: *Build) !void {
|
||||||
const ziglings_step = b.step("ziglings", "Check all ziglings");
|
const ziglings_step = b.step("ziglings", "Check all ziglings");
|
||||||
b.default_step = ziglings_step;
|
b.default_step = ziglings_step;
|
||||||
|
|
||||||
// Don't use the "multi-object for loop" syntax, in order to avoid a syntax
|
|
||||||
// error with old Zig compilers.
|
|
||||||
var prev_step = &header_step.step;
|
var prev_step = &header_step.step;
|
||||||
for (exercises) |ex| {
|
for (exercises) |ex| {
|
||||||
const build_step = ex.addExecutable(b, "exercises");
|
const build_step = ex.addExecutable(b, work_path);
|
||||||
b.installArtifact(build_step);
|
b.installArtifact(build_step);
|
||||||
|
|
||||||
const verify_stepn = ZiglingStep.create(b, ex, work_path);
|
const verify_stepn = ZiglingStep.create(b, ex, work_path);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue