| ... | @@ -49,6 +49,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D | ... | @@ -49,6 +49,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 49 | try w.writeAll( | 49 | try w.writeAll( |
| 50 | \\pub fn addAllTo(exe: *std.build.LibExeObjStep) void { | 50 | \\pub fn addAllTo(exe: *std.build.LibExeObjStep) void { |
| 51 | \\ checkMinZig(builtin.zig_version, exe); | 51 | \\ checkMinZig(builtin.zig_version, exe); |
| | 52 | \\ const b = exe.builder; |
| 52 | \\ @setEvalBranchQuota(1_000_000); | 53 | \\ @setEvalBranchQuota(1_000_000); |
| 53 | \\ for (packages) |pkg| { | 54 | \\ for (packages) |pkg| { |
| 54 | \\ const moddep = pkg.pkg.?.zp(exe.builder); | 55 | \\ 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 | ... | @@ -67,12 +68,12 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 67 | \\ exe.linkFramework(item); | 68 | \\ exe.linkFramework(item); |
| 68 | \\ llc = true; | 69 | \\ llc = true; |
| 69 | \\ } | 70 | \\ } |
| 70 | \\ inline for (pkg.c_include_dirs) |item| { | 71 | \\ for (pkg.c_include_dirs) |item| { |
| 71 | \\ exe.addIncludePath(@field(dirs, decl.name) ++ "/" ++ item); | 72 | \\ exe.addIncludePath(b.fmt("{s}/{s}", .{ @field(dirs, decl.name), item })); |
| 72 | \\ llc = true; | 73 | \\ llc = true; |
| 73 | \\ } | 74 | \\ } |
| 74 | \\ inline for (pkg.c_source_files) |item| { | 75 | \\ for (pkg.c_source_files) |item| { |
| 75 | \\ exe.addCSourceFile(@field(dirs, decl.name) ++ "/" ++ item, pkg.c_source_flags); | 76 | \\ exe.addCSourceFile(b.fmt("{s}/{s}", .{ @field(dirs, decl.name), item }), pkg.c_source_flags); |
| 76 | \\ llc = true; | 77 | \\ llc = true; |
| 77 | \\ } | 78 | \\ } |
| 78 | \\ vcpkg = vcpkg or pkg.vcpkg; | 79 | \\ vcpkg = vcpkg or pkg.vcpkg; |