aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-05-07 16:25:35 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-05-09 11:07:22 +0200
commit185a40eb75689005ace380c7dc9501db4cafe33a (patch)
tree75fe494959ee0d95b32e5c3bdc9f730712c2b317 /build.zig
parentc4f2c6253424b848b3d5f6c7f915f61bd5d46cf0 (diff)
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.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 5168d3d..68f43eb 100644
--- a/build.zig
+++ b/build.zig
@@ -198,11 +198,9 @@ pub fn build(b: *Build) !void {
const ziglings_step = b.step("ziglings", "Check all ziglings");
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;
for (exercises) |ex| {
- const build_step = ex.addExecutable(b, "exercises");
+ const build_step = ex.addExecutable(b, work_path);
b.installArtifact(build_step);
const verify_stepn = ZiglingStep.create(b, ex, work_path);