@@ -64,7 +64,7 @@ pub fn build(b: *Build) !void {
6464
6565 const compat_module = b .addModule ("compat" , .{ .root_source_file = b .path (b .pathJoin (&.{ "examples" , "compat.zig" })) });
6666
67- buildExamples (b , optimize , target , webui_module , compat_module , webui . artifact ( "webui" ) ) catch | err | {
67+ buildExamples (b , optimize , target , webui_module , compat_module ) catch | err | {
6868 log .err ("failed to build examples: {}" , .{err });
6969 std .process .exit (1 );
7070 };
@@ -99,7 +99,13 @@ fn generateDocs(b: *Build, optimize: OptimizeMode, target: Build.ResolvedTarget,
9999 docs_step .dependOn (& docs_install .step );
100100}
101101
102- fn buildExamples (b : * Build , optimize : OptimizeMode , target : Build.ResolvedTarget , webui_module : * Module , compat_module : * Module , webui_lib : * Compile ) ! void {
102+ fn buildExamples (
103+ b : * Build ,
104+ optimize : OptimizeMode ,
105+ target : Build.ResolvedTarget ,
106+ webui_module : * Module ,
107+ compat_module : * Module ,
108+ ) ! void {
103109 var lazy_path = b .path ("examples" );
104110 const build_all_step = b .step ("examples" , "build all examples" );
105111 const examples_path = lazy_path .getPath (b );
@@ -139,7 +145,6 @@ fn buildExamples(b: *Build, optimize: OptimizeMode, target: Build.ResolvedTarget
139145
140146 exe .root_module .addImport ("webui" , webui_module );
141147 exe .root_module .addImport ("compat" , compat_module );
142- exe .linkLibrary (webui_lib );
143148
144149 const exe_install = b .addInstallArtifact (exe , .{});
145150 build_all_step .dependOn (& exe_install .step );
0 commit comments