Skip to content

Commit 7f355bd

Browse files
Update to latest zig
zig version 0.11.0-dev.827+8c8f6bfa6
1 parent 7bad758 commit 7f355bd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.zig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
const Builder = @import("std").build.Builder;
22

33
pub fn build(b: *Builder) void {
4+
const target = b.standardTargetOptions(.{});
45
const mode = b.standardReleaseOptions();
5-
const lib = b.addStaticLibrary("zig-boyer-moore", "src/main.zig");
6-
lib.setBuildMode(mode);
7-
lib.install();
86

97
var main_tests = b.addTest("src/main.zig");
8+
main_tests.setTarget(target);
109
main_tests.setBuildMode(mode);
1110

1211
const test_step = b.step("test", "Run library tests");

src/main.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
const std = @import("std");
2+
13
pub const bitap = @import("bitap.zig");
24
pub const boyer_moore = @import("boyer_moore.zig");
35

4-
test "" {
5-
_ = @import("bitap.zig");
6-
_ = @import("boyer_moore.zig");
6+
test {
7+
std.testing.refAllDeclsRecursive(@This());
78
}

0 commit comments

Comments
 (0)