| ... | ... | @@ -943,6 +943,7 @@ pub const LibExeObjStep = struct { |
| 943 | 943 | exec_cmd_args: ?[]const ?[]const u8, |
| 944 | 944 | name_prefix: []const u8, |
| 945 | 945 | filter: ?[]const u8, |
| 946 | single_threaded: bool, |
| 946 | 947 | |
| 947 | 948 | root_src: ?[]const u8, |
| 948 | 949 | out_h_filename: []const u8, |
| ... | ... | @@ -1045,6 +1046,7 @@ pub const LibExeObjStep = struct { |
| 1045 | 1046 | .disable_gen_h = false, |
| 1046 | 1047 | .output_dir = null, |
| 1047 | 1048 | .need_system_paths = false, |
| 1049 | .single_threaded = false, |
| 1048 | 1050 | }; |
| 1049 | 1051 | self.computeOutFileNames(); |
| 1050 | 1052 | return self; |
| ... | ... | @@ -1206,7 +1208,7 @@ pub const LibExeObjStep = struct { |
| 1206 | 1208 | pub fn setMainPkgPath(self: *LibExeObjStep, dir_path: []const u8) void { |
| 1207 | 1209 | self.main_pkg_path = dir_path; |
| 1208 | 1210 | } |
| 1209 | | |
| 1211 | |
| 1210 | 1212 | pub fn setDisableGenH(self: *LibExeObjStep, value: bool) void { |
| 1211 | 1213 | self.disable_gen_h = value; |
| 1212 | 1214 | } |
| ... | ... | @@ -1411,6 +1413,10 @@ pub const LibExeObjStep = struct { |
| 1411 | 1413 | zig_args.append("--strip") catch unreachable; |
| 1412 | 1414 | } |
| 1413 | 1415 | |
| 1416 | if (self.single_threaded) { |
| 1417 | try zig_args.append("--single-threaded"); |
| 1418 | } |
| 1419 | |
| 1414 | 1420 | switch (self.build_mode) { |
| 1415 | 1421 | builtin.Mode.Debug => {}, |
| 1416 | 1422 | builtin.Mode.ReleaseSafe => zig_args.append("--release-safe") catch unreachable, |