Update for 0.13.0
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,5 +9,5 @@
|
|||||||
# Cheers!
|
# Cheers!
|
||||||
# -andrewrk
|
# -andrewrk
|
||||||
|
|
||||||
zig-cache/
|
.zig-cache/
|
||||||
zig-out/
|
zig-out/
|
||||||
|
|||||||
@ -5,11 +5,11 @@ pub fn build(b: *std.Build) void {
|
|||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
// Main module for projects to use.
|
// Main module for projects to use.
|
||||||
const io_module = b.addModule("io", .{ .root_source_file = .{ .path = "src/io.zig" } });
|
const io_module = b.addModule("io", .{ .root_source_file = b.path("src/io.zig") });
|
||||||
|
|
||||||
// Library unit tests.
|
// Library unit tests.
|
||||||
const main_tests = b.addTest(.{
|
const main_tests = b.addTest(.{
|
||||||
.root_source_file = .{ .path = "src/test.zig" },
|
.root_source_file = b.path("src/test.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
@ -21,7 +21,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
// Sample web server.
|
// Sample web server.
|
||||||
const server_exe = b.addExecutable(.{
|
const server_exe = b.addExecutable(.{
|
||||||
.name = "server",
|
.name = "server",
|
||||||
.root_source_file = .{ .path = "src/sample_web_server.zig" },
|
.root_source_file = b.path("src/sample_web_server.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user