authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-05 15:18:04-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-05 15:18:04-04:00
log6f3d76f61ef7f94598c77907e5083608d223a616
tree565276640815c5acecdbec4b263af039b8a87f8d
parenta39cb034ea0ae4f608ebcd7fa98df5d58d638668

simplify test-evented-io build setting


1 files changed, 2 insertions(+), 7 deletions(-)

lib/std/build.zig+2-7
...@@ -1132,7 +1132,7 @@ pub const LibExeObjStep = struct {...@@ -1132,7 +1132,7 @@ pub const LibExeObjStep = struct {
1132 name_prefix: []const u8,1132 name_prefix: []const u8,
1133 filter: ?[]const u8,1133 filter: ?[]const u8,
1134 single_threaded: bool,1134 single_threaded: bool,
1135 evented_io: bool = false,1135 test_evented_io: bool = false,
1136 code_model: builtin.CodeModel = .default,1136 code_model: builtin.CodeModel = .default,
11371137
1138 root_src: ?FileSource,1138 root_src: ?FileSource,
...@@ -1560,11 +1560,6 @@ pub const LibExeObjStep = struct {...@@ -1560,11 +1560,6 @@ pub const LibExeObjStep = struct {
1560 self.filter = text;1560 self.filter = text;
1561 }1561 }
15621562
1563 pub fn setUseTestEventedIo(self: *LibExeObjStep, use_evented_io: bool) void {
1564 assert(self.kind == Kind.Test);
1565 self.evented_io = use_evented_io;
1566 }
1567
1568 pub fn addCSourceFile(self: *LibExeObjStep, file: []const u8, args: []const []const u8) void {1563 pub fn addCSourceFile(self: *LibExeObjStep, file: []const u8, args: []const []const u8) void {
1569 self.addCSourceFileSource(.{1564 self.addCSourceFileSource(.{
1570 .args = args,1565 .args = args,
...@@ -1870,7 +1865,7 @@ pub const LibExeObjStep = struct {...@@ -1870,7 +1865,7 @@ pub const LibExeObjStep = struct {
1870 try zig_args.append(filter);1865 try zig_args.append(filter);
1871 }1866 }
18721867
1873 if (self.evented_io) {1868 if (self.test_evented_io) {
1874 try zig_args.append("--test-evented-io");1869 try zig_args.append("--test-evented-io");
1875 }1870 }
18761871