diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -2,7 +2,8 @@ const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - const optimize = b.standardOptimizeOption(.{}); + const optimize = b.standardOptimizeOption(.{.preferred_optimize_mode = .ReleaseSafe}); + const lib = b.addLibrary(.{ .name = "sitter", .root_module = b.createModule(.{ @@ -12,6 +13,11 @@ pub fn build(b: *std.Build) void { }), }); + // const funczmod = b.dependency("funcz", .{ + // .target = target, + // }).module("funcz"); + // lib.root_module.addImport("funcz", funczmod); + b.installArtifact(lib); const test_step = b.step("test", "Run unit tests"); @@ -37,6 +43,12 @@ fn unit_test( }), .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple }, }); + + // const funczmod = b.dependency("funcz", .{ + // .target = target, + // }).module("funcz"); + // unit.root_module.addImport("funcz", funczmod); + const unit_tests = b.addRunArtifact(unit); test_step.dependOn(&unit_tests.step); } |
