File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ pub fn build(b: *std.Build) void {
88 .root_source_file = b .path ("src/znoise.zig" ),
99 });
1010
11- const fnl = b .addStaticLibrary (.{
11+ const fnl = b .addLibrary (.{
1212 .name = "FastNoiseLite" ,
13- .target = target ,
14- .optimize = optimize ,
13+ .linkage = .static ,
14+ .root_module = b .createModule (.{
15+ .target = target ,
16+ .optimize = optimize ,
17+ }),
1518 });
1619 fnl .linkLibC ();
1720 fnl .addIncludePath (b .path ("libs/FastNoiseLite" ));
@@ -25,9 +28,11 @@ pub fn build(b: *std.Build) void {
2528
2629 const tests = b .addTest (.{
2730 .name = "znoise-tests" ,
28- .root_source_file = b .path ("src/znoise.zig" ),
29- .target = target ,
30- .optimize = optimize ,
31+ .root_module = b .createModule (.{
32+ .root_source_file = b .path ("src/znoise.zig" ),
33+ .target = target ,
34+ .optimize = optimize ,
35+ }),
3136 });
3237 tests .linkLibrary (fnl );
3338 b .installArtifact (tests );
Original file line number Diff line number Diff line change 22 .name = .znoise ,
33 .fingerprint = 0x20f0ee30a768ad80 ,
44 .version = "0.3.0-dev" ,
5+ .minimum_zig_version = "0.14.0" ,
56 .paths = .{
67 "build.zig" ,
78 "build.zig.zon" ,
You can’t perform that action at this time.
0 commit comments