Skip to content

Commit e575313

Browse files
committed
Remove static lib
1 parent 67abc32 commit e575313

File tree

1 file changed

+19
-27
lines changed

1 file changed

+19
-27
lines changed

build.zig

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -62,35 +62,27 @@ pub fn build(b: *Build) !void {
6262
try addDependencies(b, lightpanda_module, opts);
6363

6464
{
65-
// static lib
66-
// ----------
65+
// browser
66+
// -------
6767

68-
const lib = b.addLibrary(.{ .name = "lightpanda", .root_module = lightpanda_module, .use_llvm = true, .linkage = .static });
69-
b.installArtifact(lib);
70-
}
68+
// compile and install
69+
const exe = b.addExecutable(.{
70+
.name = "lightpanda",
71+
.use_llvm = true,
72+
.root_module = lightpanda_module,
73+
});
74+
b.installArtifact(exe);
7175

72-
// {
73-
// // browser
74-
// // -------
75-
76-
// // compile and install
77-
// const exe = b.addExecutable(.{
78-
// .name = "lightpanda",
79-
// .use_llvm = true,
80-
// .root_module = lightpanda_module,
81-
// });
82-
// b.installArtifact(exe);
83-
84-
// // run
85-
// const run_cmd = b.addRunArtifact(exe);
86-
// if (b.args) |args| {
87-
// run_cmd.addArgs(args);
88-
// }
89-
90-
// // step
91-
// const run_step = b.step("run", "Run the app");
92-
// run_step.dependOn(&run_cmd.step);
93-
// }
76+
// run
77+
const run_cmd = b.addRunArtifact(exe);
78+
if (b.args) |args| {
79+
run_cmd.addArgs(args);
80+
}
81+
82+
// step
83+
const run_step = b.step("run", "Run the app");
84+
run_step.dependOn(&run_cmd.step);
85+
}
9486

9587
{
9688
// tests

0 commit comments

Comments
 (0)