-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.zig
More file actions
29 lines (25 loc) · 912 Bytes
/
build.zig
File metadata and controls
29 lines (25 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
_ = b.addModule("percent_encoding", .{
.root_source_file = b.path("percent_encoding.zig"),
});
const tests = b.addTest(.{
.root_module = b.createModule(.{
.root_source_file = b.path("percent_encoding.zig"),
.target = target,
.optimize = optimize,
}),
});
b.step("test", "Run tests").dependOn(&b.addRunArtifact(tests).step);
const benchmark = b.addExecutable(.{
.name = "benchmark",
.root_module = b.createModule(.{
.root_source_file = b.path("benchmark.zig"),
.target = target,
.optimize = optimize,
}),
});
b.step("benchmark", "Run benchmark").dependOn(&b.addRunArtifact(benchmark).step);
}