update build syntax
This commit is contained in:
parent
a36c82b2ac
commit
8a7923bd4e
@ -17,7 +17,7 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
var exe = b.addExecutable(.{
|
||||
.name = "zremap",
|
||||
// In this case the main source file is merely a path, however, in more
|
||||
// In this case the main source file is merely a path, however, in more),
|
||||
// complicated build scripts, this could be a generated file.
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
|
||||
// Creates a step for unit testing. This only builds the test executable
|
||||
// but does not run it.
|
||||
const unit_tests = b.addTest(.{
|
||||
.root_source_file = .{ .path = "src/main.zig" },
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user