| ... | @@ -2207,6 +2207,11 @@ pub const LibExeObjStep = struct { | ... | @@ -2207,6 +2207,11 @@ pub const LibExeObjStep = struct { |
| 2207 | self.filter = if (text) |t| self.builder.dupe(t) else null; | 2207 | self.filter = if (text) |t| self.builder.dupe(t) else null; |
| 2208 | } | 2208 | } |
| 2209 | | 2209 | |
| | 2210 | pub fn setTestRunner(self: *LibExeObjStep, path: ?[]const u8) void { |
| | 2211 | assert(self.kind == .@"test" or self.kind == .test_exe); |
| | 2212 | self.test_runner = if (path) |p| self.builder.dupePath(p) else null; |
| | 2213 | } |
| | 2214 | |
| 2210 | /// Handy when you have many C/C++ source files and want them all to have the same flags. | 2215 | /// Handy when you have many C/C++ source files and want them all to have the same flags. |
| 2211 | pub fn addCSourceFiles(self: *LibExeObjStep, files: []const []const u8, flags: []const []const u8) void { | 2216 | pub fn addCSourceFiles(self: *LibExeObjStep, files: []const []const u8, flags: []const []const u8) void { |
| 2212 | const c_source_files = self.builder.allocator.create(CSourceFiles) catch unreachable; | 2217 | const c_source_files = self.builder.allocator.create(CSourceFiles) catch unreachable; |