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 | |
| parent | ca4b29762ac0ed19e1f18474e0df3257f4a74a06 (diff) | |
| download | funcz-21673aeba3becf15e8eb11686d49eb48b75679d0.tar.gz | |
Fixed library stuff
| -rw-r--r-- | build.zig | 17 | ||||
| -rw-r--r-- | src/root.zig | 1 |
2 files changed, 12 insertions, 6 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); diff --git a/src/root.zig b/src/root.zig index 1339904..721b2a0 100644 --- a/src/root.zig +++ b/src/root.zig @@ -3,4 +3,3 @@ pub const mapAlloc = @import("map.zig").mapAlloc; pub const curry = @import("curry.zig").curry; pub const compose = @import("compose.zig").compose; pub const combinators = @import("combinators.zig"); -pub const Functor = @import("functor.zig").Functor; |
