File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ pub fn build(b: *std.Build) void {
4
4
const target = b .standardTargetOptions (.{});
5
5
const optimize = b .standardOptimizeOption (.{});
6
6
7
+ const datetime = b .addModule ("datetime" , .{
8
+ .root_source_file = b .path ("src/root.zig" ),
9
+ });
10
+
7
11
const lib = b .addStaticLibrary (.{
8
12
.name = "datetime" ,
9
13
.root_source_file = b .path ("src/root.zig" ),
@@ -25,7 +29,7 @@ pub fn build(b: *std.Build) void {
25
29
.target = target ,
26
30
.optimize = optimize ,
27
31
});
28
- demo .root_module .addImport ("datetime" , & lib . root_module );
32
+ demo .root_module .addImport ("datetime" , datetime );
29
33
const run_demo = b .addRunArtifact (demo );
30
34
31
35
const test_step = b .step ("test" , "Run unit tests" );
Original file line number Diff line number Diff line change 1
1
.{
2
2
.name = "datetime" ,
3
- .version = "0.0.1 " ,
3
+ .version = "0.0.3 " ,
4
4
.paths = .{
5
5
"build.zig" ,
6
6
"build.zig.zon" ,
You can’t perform that action at this time.
0 commit comments