mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
update test build script to latest API
This commit is contained in:
parent
a717ac0340
commit
8db1490b8a
@ -5,14 +5,14 @@ pub fn build(b: *std.Build) void {
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const mod = b.addModule("mod", .{
|
||||
.root_source_file = .{ .path = "mod.zig" },
|
||||
.root_source_file = b.path("mod.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "lib",
|
||||
.root_source_file = .{ .path = "lib.zig" },
|
||||
.root_source_file = b.path("lib.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "app",
|
||||
.root_source_file = .{ .path = "main.zig" },
|
||||
.root_source_file = b.path("main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user