From a02c1e7996f407efbba08ab70b957425419772da Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Wed, 16 Jun 2021 14:47:54 +0300 Subject: [PATCH] Build runner: Only output generated package path if it is available --- src/special/build_runner.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/special/build_runner.zig b/src/special/build_runner.zig index a3ffdd5..a6dfc01 100644 --- a/src/special/build_runner.zig +++ b/src/special/build_runner.zig @@ -54,7 +54,7 @@ fn processStep(stdout_stream: anytype, step: *std.build.Step) anyerror!void { fn processPackage(out_stream: anytype, pkg: Pkg) anyerror!void { switch (pkg.path) { .path => |path| try out_stream.print("{s}\x00{s}\n", .{ pkg.name, path }), - .generated => |generated| try out_stream.print("{s}\x00{s}\n", .{ pkg.name, generated.getPath() }), + .generated => |generated| if (generated.path != null) try out_stream.print("{s}\x00{s}\n", .{ pkg.name, generated.path.? }), } if (pkg.dependencies) |dependencies| {