summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
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);
}