authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-11 12:16:32 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-11 12:16:32 -07:00
log6abac9b3f41b9e3490023d232a57548a71183c9c
tree11e904e41038717cf0d7ffea7dab191eae6ea552
parent4af6aa9409cc8e61c11d270008e9238d137b067b

add zfetch stub for bootstrap build


2 files changed, 16 insertions(+), 1 deletions(-)

build.zig+7-1
......@@ -42,7 +42,13 @@ pub fn build(b: *std.build.Builder) void {
4242 exe.addCSourceFile("./libs/yaml/src/scanner.c", &.{});
4343 exe.addCSourceFile("./libs/yaml/src/writer.c", &.{});
4444
45 exe.addPackagePath("zigmod", "./src/lib.zig");
45 exe.addPackage(.{
46 .name = "zigmod",
47 .path = .{ .path = "./src/lib.zig" },
48 .dependencies = &[_]std.build.Pkg{
49 .{ .name = "zfetch", .path = .{ .path = "src/zfetch_stub.zig" } },
50 },
51 });
4652 } else {
4753 deps.addAllTo(exe);
4854 }
src/zfetch_stub.zig created+9
......@@ -0,0 +1,9 @@
1//! placeholder for bootstrap build
2
3pub fn init() !void {
4 //
5}
6
7pub fn deinit() void {
8 //
9}