Skip to content

Commit 4877f2b

Browse files
committed
chore: Update build.zig
1 parent 2213202 commit 4877f2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.zig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ pub fn build(b: *std.Build) void {
88
const target = b.standardTargetOptions(.{});
99
const optimize = b.standardOptimizeOption(.{});
1010

11-
const lib_mod = b.addModule("csscolorparser", .{ .root_source_file = b.path("src/root.zig") });
11+
const csscolorparser_mod = b.addModule(
12+
"csscolorparser",
13+
.{ .root_source_file = b.path("src/root.zig") },
14+
);
1215

1316
const unit_test_step = b.step("unit-test", "Run only the unit tests");
1417
const unit_tests = b.addTest(.{
@@ -25,7 +28,7 @@ pub fn build(b: *std.Build) void {
2528
.target = target,
2629
.optimize = optimize,
2730
});
28-
integration_tests.root_module.addImport("csscolorparser", lib_mod);
31+
integration_tests.root_module.addImport("csscolorparser", csscolorparser_mod);
2932
const run_integration_tests = b.addRunArtifact(integration_tests);
3033
integration_test_step.dependOn(&run_integration_tests.step);
3134

@@ -56,7 +59,7 @@ pub fn build(b: *std.Build) void {
5659
.target = target,
5760
.optimize = optimize,
5861
});
59-
example.root_module.addImport("csscolorparser", lib_mod);
62+
example.root_module.addImport("csscolorparser", csscolorparser_mod);
6063
const install_example = b.addInstallArtifact(example, .{});
6164
example_step.dependOn(&example.step);
6265
example_step.dependOn(&install_example.step);

0 commit comments

Comments
 (0)