diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-23 21:45:41 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-23 21:45:41 -0500 |
| commit | 21673aeba3becf15e8eb11686d49eb48b75679d0 (patch) | |
| tree | ac528c9c0f9bab7ba1c138fa69e626226097f7a6 /build.zig | |
| parent | ca4b29762ac0ed19e1f18474e0df3257f4a74a06 (diff) | |
| download | funcz-21673aeba3becf15e8eb11686d49eb48b75679d0.tar.gz | |
Fixed library stuff
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -4,14 +4,20 @@ pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{.preferred_optimize_mode = .ReleaseSmall }); + const dep_opts = .{ .target = target, .optimize = optimize }; + _=dep_opts; + + const rootmod =b.addModule("funcz", .{ + .root_source_file = b.path("src/root.zig"), + .optimize = optimize, + .target = target, + }); + const lib = b.addLibrary(.{ .name = "funcz", - .root_module = b.createModule(.{ - .root_source_file = b.path("src/root.zig"), - .target = target, - .optimize = optimize, - }), + .root_module = rootmod, }); + b.installArtifact(lib); const exe = b.addExecutable(.{ @@ -23,6 +29,7 @@ pub fn build(b: *std.Build) !void { .optimize = optimize, }) }); + b.installArtifact(exe); const run_cmd = b.addRunArtifact(exe); |
