diff options
| author | Manlio Perillo <[email protected]> | 2023-05-09 11:00:16 +0200 |
|---|---|---|
| committer | Manlio Perillo <[email protected]> | 2023-05-09 11:11:11 +0200 |
| commit | e4e096c680fc2c8b577cd64bbffc26baf250551a (patch) | |
| tree | 55be1970342d292f6e91f6f1d0e9cc8f1787f1fa /build.zig | |
| parent | 728402c64ff1a4ed1e16c4adac704193e973dc37 (diff) | |
| download | ziglings-e4e096c680fc2c8b577cd64bbffc26baf250551a.tar.xz ziglings-e4e096c680fc2c8b577cd64bbffc26baf250551a.zip | |
build: make literal paths portable
Use fs.path.sep_str instead of a slash, in literal paths.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -124,7 +124,11 @@ pub fn build(b: *Build) !void { const override_healed_path = b.option([]const u8, "healed-path", "Override healed path"); const exno: ?usize = b.option(usize, "n", "Select exercise"); - const healed_path = if (override_healed_path) |path| path else "patches/healed"; + const sep = std.fs.path.sep_str; + const healed_path = if (override_healed_path) |path| + path + else + "patches" ++ sep ++ "healed"; const work_path = if (healed) healed_path else "exercises"; const header_step = PrintStep.create(b, logo); |
