Skip to content

Commit

Permalink
refactor: use
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Apr 13, 2024
1 parent 7db1c7a commit a2be985
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const root_source_file = std.Build.LazyPath.relative("src/main.zig");
const version = std.SemanticVersion{ .major = 0, .minor = 2, .patch = 1 };
const root_source_file = b.path("src/main.zig");
const version = std.SemanticVersion{ .major = 0, .minor = 2, .patch = 2 };

// Dependencies
const clap_dep = b.dependency("clap", .{
Expand Down
6 changes: 3 additions & 3 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.{
.name = "liza",
.version = "0.2.1",
.version = "0.2.2",
.dependencies = .{
.clap = .{
.url = "https://github.com/Hejsil/zig-clap/archive/209ba4d.tar.gz",
.hash = "12200103e7b4a0cb162f2912df4fe97914024a25b5c9fcce6ea4119744f3f2a7f24e",
.url = "https://github.com/Hejsil/zig-clap/archive/8c98e64.tar.gz",
.hash = "122014e73fd712190e109950837b97f6143f02d7e2b6986e1db70b6f4aadb5ba6a0d",
},
},
.paths = .{
Expand Down
2 changes: 1 addition & 1 deletion src/templates/exe/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const root_source_file = std.Build.LazyPath.relative("src/main.zig");
const root_source_file = b.path("src/main.zig");
const version = std.SemanticVersion{ .major = 0, .minor = 1, .patch = 0 };

// Dependencies
Expand Down
4 changes: 2 additions & 2 deletions src/templates/exe/build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.version = "0.1.0",
.dependencies = .{
.clap = .{
.url = "https://github.com/Hejsil/zig-clap/archive/0f2db77.tar.gz",
.hash = "12203896de6eedec14712f4f1eaac8b646939cfed213c56accf231a0abb05f9dbb77",
.url = "https://github.com/Hejsil/zig-clap/archive/8c98e64.tar.gz",
.hash = "122014e73fd712190e109950837b97f6143f02d7e2b6986e1db70b6f4aadb5ba6a0d",
},
},
.paths = .{
Expand Down
4 changes: 2 additions & 2 deletions src/templates/lib/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const root_source_file = std.Build.LazyPath.relative("src/lib.zig");
const root_source_file = b.path("src/lib.zig");
const version = std.SemanticVersion{ .major = 0, .minor = 1, .patch = 0 };

// Module
Expand Down Expand Up @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) void {
.target = target,
.version = version,
.optimize = optimize,
.root_source_file = std.Build.LazyPath.relative(EXAMPLES_DIR ++ EXAMPLE_NAME ++ "/main.zig"),
.root_source_file = b.path(EXAMPLES_DIR ++ EXAMPLE_NAME ++ "/main.zig"),
});
example.root_module.addImport("?", lib_mod);

Expand Down

0 comments on commit a2be985

Please sign in to comment.