Merge pull request #1798 from Jan200101/PR/rel-path

build: prevent breakage with relative paths
This commit is contained in:
Mitchell Hashimoto
2024-05-26 12:06:33 -04:00
committed by GitHub

View File

@ -1387,7 +1387,7 @@ fn benchSteps(
) !void {
// Open the directory ./src/bench
const c_dir_path = (comptime root()) ++ "/src/bench";
var c_dir = try fs.openDirAbsolute(c_dir_path, .{ .iterate = true });
var c_dir = try fs.cwd().openDir(c_dir_path, .{ .iterate = true });
defer c_dir.close();
// Go through and add each as a step
@ -1443,7 +1443,7 @@ fn conformanceSteps(
// Open the directory ./conformance
const c_dir_path = (comptime root()) ++ "/conformance";
var c_dir = try fs.openDirAbsolute(c_dir_path, .{ .iterate = true });
var c_dir = try fs.cwd().openDir(c_dir_path, .{ .iterate = true });
defer c_dir.close();
// Go through and add each as a step