build: update for zig-0.13
This commit is contained in:
parent
ad73ea6508
commit
8ccb2c3a66
@ -5,12 +5,12 @@ pub fn build(b: *std.Build) void {
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const nice = b.addModule("nice", .{
|
||||
.root_source_file = .{ .path = "src/nice.zig" },
|
||||
.root_source_file = b.path("src/nice.zig"),
|
||||
});
|
||||
|
||||
const tests = b.addTest(.{
|
||||
.name = "nice-unit-tests",
|
||||
.root_source_file = .{ .path = "tests/main.zig" },
|
||||
.root_source_file = b.path("tests/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
@ -50,7 +50,7 @@ pub fn add_examples(b: *std.Build, options: ExampleOptions) void {
|
||||
inline for (examples) |example| {
|
||||
const ex_exe = b.addExecutable(.{
|
||||
.name = example.name,
|
||||
.root_source_file = .{ .path = example.file },
|
||||
.root_source_file = b.path(example.file),
|
||||
.target = options.target,
|
||||
.optimize = .Debug,
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
.{
|
||||
.name = "nice-data",
|
||||
.name = "nice",
|
||||
.version = "0.1.0-pre",
|
||||
.dependencies = .{},
|
||||
.paths = .{
|
||||
|
Loading…
x
Reference in New Issue
Block a user