We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ad0be commit 973d23dCopy full SHA for 973d23d
build.zig
@@ -182,7 +182,7 @@ fn buildExamples(b: *Build, options: BuildExamplesOptions) !void {
182
const build_all_step = b.step("examples", "build all examples");
183
const examples_path = lazy_path.getPath(b);
184
185
- var examples_dir = std.fs.openDirAbsolute(examples_path, .{ .iterate = true }) catch |err| {
+ var examples_dir = b.build_root.handle.openDir(examples_path, .{ .iterate = true }) catch |err| {
186
switch (err) {
187
error.FileNotFound => return,
188
else => return err,
@@ -233,4 +233,3 @@ fn buildExample(
233
const exe_run_step = b.step(step_name, step_desc);
234
exe_run_step.dependOn(&exe_run.step);
235
}
236
-
0 commit comments