authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-03-13 16:05:12 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-03-13 16:05:12 -07:00
log9f12942370d1f885a17355b06f20a7f10adfa87d
treeb35dee83a417c12e719c640398b33219b0f69052
parent89d24825ecd05fb81e5fb8cc33a15f0ee1fd14c1

cmd/fetch: dont use inline for for c_include_dirs and c_source_files


1 files changed, 5 insertions(+), 4 deletions(-)

src/cmd/fetch.zig+5-4
...@@ -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;