@@ -399,9 +399,7 @@ pub fn build(b: *std.Build) !void {
399399 fuzz_lib .linkLibrary (lib );
400400 fuzz_lib .want_lto = true ;
401401 fuzz_lib .bundle_compiler_rt = true ;
402- fuzz_lib .root_module .addImport ("sqlite" , b .createModule (.{
403- .root_source_file = .{ .path = "sqlite.zig" },
404- }));
402+ fuzz_lib .root_module .addImport ("sqlite" , sqlite_mod );
405403
406404 // Setup the output name
407405 const fuzz_executable_name = "fuzz" ;
@@ -430,9 +428,7 @@ pub fn build(b: *std.Build) !void {
430428 });
431429 fuzz_debug_exe .addIncludePath (.{ .path = "c" });
432430 fuzz_debug_exe .linkLibrary (lib );
433- fuzz_debug_exe .root_module .addImport ("sqlite" , b .createModule (.{
434- .root_source_file = .{ .path = "sqlite.zig" },
435- }));
431+ fuzz_debug_exe .root_module .addImport ("sqlite" , sqlite_mod );
436432
437433 // Only install fuzz-debug when the fuzz step is run
438434 const install_fuzz_debug_exe = b .addInstallArtifact (fuzz_debug_exe , .{});
@@ -454,9 +450,7 @@ pub fn build(b: *std.Build) !void {
454450 .optimize = optimize ,
455451 });
456452 zigcrypto_loadable_ext .addIncludePath (.{ .path = "c" });
457- zigcrypto_loadable_ext .root_module .addImport ("sqlite" , b .createModule (.{
458- .root_source_file = .{ .path = "sqlite.zig" },
459- }));
453+ zigcrypto_loadable_ext .root_module .addImport ("sqlite" , sqlite_mod );
460454 zigcrypto_loadable_ext .linkLibrary (lib );
461455
462456 const install_zigcrypto_loadable_ext = b .addInstallArtifact (zigcrypto_loadable_ext , .{});
@@ -468,9 +462,7 @@ pub fn build(b: *std.Build) !void {
468462 .optimize = optimize ,
469463 });
470464 zigcrypto_test .addIncludePath (.{ .path = "c" });
471- zigcrypto_test .root_module .addImport ("sqlite" , b .createModule (.{
472- .root_source_file = .{ .path = "sqlite.zig" },
473- }));
465+ zigcrypto_test .root_module .addImport ("sqlite" , sqlite_mod );
474466 zigcrypto_test .linkLibrary (lib );
475467
476468 const install_zigcrypto_test = b .addInstallArtifact (zigcrypto_test , .{});
0 commit comments