From 4eb090290874861f180946749a480a8be737c4a0 Mon Sep 17 00:00:00 2001 From: Kasper Sauramo Date: Thu, 23 Oct 2025 18:43:39 +0300 Subject: [PATCH] build adjustment (wip) --- build.zig | 7 +++---- build.zig.zon | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index 0c6be46..17ad1e3 100644 --- a/build.zig +++ b/build.zig @@ -15,10 +15,10 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - const zomt = b.dependency("omt", .{ + const zomt = b.dependency("zomt", .{ .target = target, .optimize = optimize, - }); + }).module("zomt"); const exe = b.addExecutable((.{ .name = "omtoy", @@ -29,8 +29,7 @@ pub fn build(b: *std.Build) void { }), })); - exe.root_module.addImport("omt", zomt.module("zomt")); - exe.addLibraryPath(b.path("omt/zig-out/lib/")); + exe.root_module.addImport("zomt", zomt); b.installArtifact(exe); diff --git a/build.zig.zon b/build.zig.zon index 0d8998b..66e52a5 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -32,7 +32,7 @@ // Once all dependencies are fetched, `zig build` no longer requires // internet connectivity. .dependencies = .{ - .omt = .{ + .zomt = .{ .path = "omt/", }, },