Skip to content
Snippets Groups Projects
Commit ecba68a9 authored by Ben Gamari's avatar Ben Gamari
Browse files

hadrian: Suppress xelatex output unless it fails

As noted in #18835, xelatex produces an absurd amount of output, nearly
all of which is meaningless. Silence this.

Fixes #18835.
parent 6a243e9d
No related branches found
No related tags found
No related merge requests found
Pipeline #26228 failed
......@@ -286,7 +286,18 @@ instance H.Builder Builder where
Makeinfo -> do
cmd' echo [path] "--no-split" [ "-o", output] [input]
Xelatex -> unit $ cmd' [Cwd output] [path] buildArgs
Xelatex ->
-- xelatex produces an incredible amount of output, almost
-- all of which is useless. Suppress it unless user
-- requests a loud build.
if verbosity >= Loud
then cmd' [Cwd output] [path] buildArgs
else do (Stdouterr out, Exit code) <- cmd' [Cwd output] [path] buildArgs
when (code /= ExitSuccess) $
BSL.hPutStrLn stderr out
putFailure "xelatex failed!"
fail "xelatex failed"
Makeindex -> unit $ cmd' [Cwd output] [path] (buildArgs ++ [input])
Tar _ -> cmd' buildOptions echo [path] buildArgs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment