| ... | @@ -1637,6 +1637,7 @@ pub const BuildExeSubprocessOptions = struct { | ... | @@ -1637,6 +1637,7 @@ pub const BuildExeSubprocessOptions = struct { |
| 1637 | arch_os_abi: ?[]const u8 = null, | 1637 | arch_os_abi: ?[]const u8 = null, |
| 1638 | cpu_features: ?[]const u8 = null, | 1638 | cpu_features: ?[]const u8 = null, |
| 1639 | progress_node: std.Progress.Node = .none, | 1639 | progress_node: std.Progress.Node = .none, |
| | 1640 | skip_log_cmdline_on_compile_errors: bool = false, |
| 1640 | }; | 1641 | }; |
| 1641 | | 1642 | |
| 1642 | pub const BuildExeSubprocessError = error{ | 1643 | pub const BuildExeSubprocessError = error{ |
| ... | @@ -1820,7 +1821,9 @@ pub fn buildExeSubprocess( | ... | @@ -1820,7 +1821,9 @@ pub fn buildExeSubprocess( |
| 1820 | return error.AlreadyReported; | 1821 | return error.AlreadyReported; |
| 1821 | }, | 1822 | }, |
| 1822 | }; | 1823 | }; |
| 1823 | log.err("command reported {d} compilation errors: {f}", .{ result_error_bundle.errorMessageCount(), cmd }); | 1824 | if (!options.skip_log_cmdline_on_compile_errors) log.err("command reported {d} compilation errors: {f}", .{ |
| | 1825 | result_error_bundle.errorMessageCount(), cmd, |
| | 1826 | }); |
| 1824 | if (received_fs_inputs) return error.FailedButCacheIntact; | 1827 | if (received_fs_inputs) return error.FailedButCacheIntact; |
| 1825 | return error.AlreadyReported; | 1828 | return error.AlreadyReported; |
| 1826 | } | 1829 | } |