mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
build: improve Exercise.addExecutable
Replace the file_path variable with path.
This commit is contained in:
parent
1dd5852bec
commit
3f81cdf3ac
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue