diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 88be0498528b11aebca9839bf6d8bbe82df3df22..c168fbad6d0004b5bd7def49e82b321ef7aa5200 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -49,6 +49,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D try w.writeAll( \\pub fn addAllTo(exe: *std.build.LibExeObjStep) void { \\ checkMinZig(builtin.zig_version, exe); + \\ const b = exe.builder; \\ @setEvalBranchQuota(1_000_000); \\ for (packages) |pkg| { \\ const moddep = pkg.pkg.?.zp(exe.builder); @@ -67,12 +68,12 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D \\ exe.linkFramework(item); \\ llc = true; \\ } - \\ inline for (pkg.c_include_dirs) |item| { - \\ exe.addIncludePath(@field(dirs, decl.name) ++ "/" ++ item); + \\ for (pkg.c_include_dirs) |item| { + \\ exe.addIncludePath(b.fmt("{s}/{s}", .{ @field(dirs, decl.name), item })); \\ llc = true; \\ } - \\ inline for (pkg.c_source_files) |item| { - \\ exe.addCSourceFile(@field(dirs, decl.name) ++ "/" ++ item, pkg.c_source_flags); + \\ for (pkg.c_source_files) |item| { + \\ exe.addCSourceFile(b.fmt("{s}/{s}", .{ @field(dirs, decl.name), item }), pkg.c_source_flags); \\ llc = true; \\ } \\ vcpkg = vcpkg or pkg.vcpkg;