Skip to content

Commit e6e0d07

Browse files
committed
use pathFromRoot for checking source
1 parent 65f1b6f commit e6e0d07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ fn bootstrapV8(b: *std.Build, v8_dir: []const u8) !*std.Build.Step.Run {
117117
const marker_stat = std.fs.cwd().statFile(marker_file) catch break :blk true;
118118
const marker_mtime = marker_stat.mtime;
119119

120-
const source_dirs = [_][]const u8{ "src", "build-tools" };
120+
const source_dirs = [_][]const u8{
121+
b.pathFromRoot("src"),
122+
b.pathFromRoot("build-tools"),
123+
};
121124

122125
for (source_dirs) |dir_path| {
123126
var dir = try std.fs.cwd().openDir(dir_path, .{ .iterate = true });

0 commit comments

Comments
 (0)