build(zig): use build root instead of cwd (#3944)
`std.fs.cwd` refers to the cwd of the build process, which is not the root of tree-sitter when tree-sitter is used as a sub-module. Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
bcf82da55c
commit
00d34e86a3
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ fn wasmtimeDep(target: std.Target) []const u8 {
|
|||
fn findSourceFiles(b: *std.Build) ![]const []const u8 {
|
||||
var sources = std.ArrayList([]const u8).init(b.allocator);
|
||||
|
||||
var dir = try std.fs.cwd().openDir("lib/src", .{ .iterate = true });
|
||||
var dir = try b.build_root.handle.openDir("lib/src", .{ .iterate = true });
|
||||
var iter = dir.iterate();
|
||||
defer dir.close();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue