aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2025-10-23 21:56:14 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2025-10-23 21:56:14 -0500
commit2d6ab41ed1c96f9739afbd15d5d67718b11905b2 (patch)
tree55f526660560bc2053bcc4b3fc3ad5b177613f82
parent21673aeba3becf15e8eb11686d49eb48b75679d0 (diff)
downloadfuncz-2d6ab41ed1c96f9739afbd15d5d67718b11905b2.tar.gz
I honestly have no idea how this is supposed to work
-rw-r--r--build.zig52
1 files changed, 27 insertions, 25 deletions
diff --git a/build.zig b/build.zig
index 7a853e5..04b39e0 100644
--- a/build.zig
+++ b/build.zig
@@ -12,30 +12,32 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
.target = target,
});
-
- const lib = b.addLibrary(.{
- .name = "funcz",
- .root_module = rootmod,
- });
-
- b.installArtifact(lib);
-
- const exe = b.addExecutable(.{
- .name = "funczExample",
- .root_module = b.createModule(.{
- .root_source_file = b.path("src/example.zig"),
- .imports = &.{ .{.name = "funcz", .module = lib.root_module} },
- .target = target,
- .optimize = optimize,
- })
- });
-
- b.installArtifact(exe);
-
- const run_cmd = b.addRunArtifact(exe);
- run_cmd.step.dependOn(b.getInstallStep());
- if (b.args) |args| run_cmd.addArgs(args);
- const run_step = b.step("run", "Run the app");
- run_step.dependOn(&run_cmd.step);
+ const options = b.addOptions();
+ rootmod.addOptions("build", options);
+
+ // const lib = b.addLibrary(.{
+ // .name = "funcz",
+ // .root_module = rootmod,
+ // });
+ //
+ // b.installArtifact(lib);
+
+ // const exe = b.addExecutable(.{
+ // .name = "funczExample",
+ // .root_module = b.createModule(.{
+ // .root_source_file = b.path("src/example.zig"),
+ // .imports = &.{ .{.name = "funcz", .module = lib.root_module} },
+ // .target = target,
+ // .optimize = optimize,
+ // })
+ // });
+ //
+ // b.installArtifact(exe);
+
+ // const run_cmd = b.addRunArtifact(exe);
+ // run_cmd.step.dependOn(b.getInstallStep());
+ // if (b.args) |args| run_cmd.addArgs(args);
+ // const run_step = b.step("run", "Run the app");
+ // run_step.dependOn(&run_cmd.step);
}