aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 5b60f2d..6d8e34b 100644
--- a/build.zig
+++ b/build.zig
@@ -63,12 +63,12 @@ pub const Exercise = struct {
/// Returns the CompileStep for this exercise.
pub fn addExecutable(self: Exercise, b: *Build, work_path: []const u8) *CompileStep {
- const file_path = join(b.allocator, &.{ work_path, self.main_file }) catch
+ const path = join(b.allocator, &.{ work_path, self.main_file }) catch
@panic("OOM");
return b.addExecutable(.{
.name = self.name(),
- .root_source_file = .{ .path = file_path },
+ .root_source_file = .{ .path = path },
.link_libc = self.link_libc,
});
}