We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 816a681 commit 8b73eeeCopy full SHA for 8b73eee
legacy/builder/builder_utils/utils.go
@@ -190,7 +190,15 @@ func compileFileWithRecipe(ctx *types.Context, sourcePath *paths.Path, source *p
190
ctx.CompilationDatabase.Add(source, command)
191
}
192
if !objIsUpToDate && !ctx.OnlyUpdateCompilationDatabase {
193
- _, _, err = utils.ExecCommand(ctx, command, utils.ShowIfVerbose /* stdout */, utils.Show /* stderr */)
+ // Since this compile could be multithreaded, we first capture the command output
194
+ stdout, stderr, err := utils.ExecCommand(ctx, command, utils.Capture, utils.Capture)
195
+ // and transfer all at once at the end...
196
+ if ctx.Verbose {
197
+ ctx.WriteStdout(stdout)
198
+ }
199
+ ctx.WriteStderr(stderr)
200
+
201
+ // ...and then return the error
202
if err != nil {
203
return nil, errors.WithStack(err)
204
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments