commit 6f3d76f61ef7f94598c77907e5083608d223a616 (tree)
parent a39cb034ea0ae4f608ebcd7fa98df5d58d638668
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 5 May 2020 15:18:04 -0400
simplify test-evented-io build setting
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/std/build.zig b/lib/std/build.zig
@@ -1132,7 +1132,7 @@ pub const LibExeObjStep = struct {
name_prefix: []const u8,
filter: ?[]const u8,
single_threaded: bool,
- evented_io: bool = false,
+ test_evented_io: bool = false,
code_model: builtin.CodeModel = .default,
root_src: ?FileSource,
@@ -1560,11 +1560,6 @@ pub const LibExeObjStep = struct {
self.filter = text;
}
- pub fn setUseTestEventedIo(self: *LibExeObjStep, use_evented_io: bool) void {
- assert(self.kind == Kind.Test);
- self.evented_io = use_evented_io;
- }
-
pub fn addCSourceFile(self: *LibExeObjStep, file: []const u8, args: []const []const u8) void {
self.addCSourceFileSource(.{
.args = args,
@@ -1870,7 +1865,7 @@ pub const LibExeObjStep = struct {
try zig_args.append(filter);
}
- if (self.evented_io) {
+ if (self.test_evented_io) {
try zig_args.append("--test-evented-io");
}