File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ pub fn build(b: *std.Build) void {
1414 );
1515
1616 const lib_unit_tests = b .addTest (.{
17- .root_source_file = b .path ("src/root.zig" ),
18- .target = target ,
19- .optimize = optimize ,
17+ .root_module = mod ,
2018 });
2119
2220 const run_lib_unit_tests = b .addRunArtifact (lib_unit_tests );
@@ -26,11 +24,15 @@ pub fn build(b: *std.Build) void {
2624
2725 const exe = b .addExecutable (.{
2826 .name = "fuzzig" ,
29- .root_source_file = b .path ("src/main.zig" ),
30- .target = target ,
31- .optimize = optimize ,
27+ .root_module = b .createModule (.{
28+ .root_source_file = b .path ("src/main.zig" ),
29+ .target = target ,
30+ .optimize = optimize ,
31+ .imports = &.{
32+ .{ .name = "fuzzig" , .module = mod },
33+ },
34+ }),
3235 });
33- exe .root_module .addImport ("fuzzig" , mod );
3436
3537 const run_cmd = b .addRunArtifact (exe );
3638 const benchmark_step = b .step ("benchmark" , "Run benchmarks." );
You can’t perform that action at this time.
0 commit comments