summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2026-02-23 14:58:23 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2026-02-23 14:58:23 -0600
commitbe3b043424d55eb3d62ade9b6967f0f22bafc737 (patch)
treeb1a74c790635098b9cc5dc9ad2c53351642d2f28 /build.zig
parent83889f7f2d72004414f02f88e978b62bed885bfd (diff)
downloadsitter-be3b043424d55eb3d62ade9b6967f0f22bafc737.tar.gz
Basic iterator skeleton finishedHEADmain
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig14
1 files changed, 13 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 8a09085..6415fe4 100644
--- a/build.zig
+++ b/build.zig
@@ -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);
}