ninja: pipe ninja output through cat in hooks

ninja build progress output is not line-base, it overwrites the same
line over and over again with its progress reporting. nix is line-based
though, so ninja-based builds have their progress hidden. pipe ninja
output through cat to avoid this.
This commit is contained in:
pennae 2021-12-09 09:43:36 +01:00
parent 00a904f61b
commit 2f2fa58e4d

View file

@ -14,7 +14,7 @@ ninjaBuildPhase() {
)
echoCmd 'build flags' "${flagsArray[@]}"
ninja "${flagsArray[@]}"
ninja "${flagsArray[@]}" | cat
runHook postBuild
}
@ -33,7 +33,7 @@ ninjaInstallPhase() {
)
echoCmd 'install flags' "${flagsArray[@]}"
ninja "${flagsArray[@]}"
ninja "${flagsArray[@]}" | cat
runHook postInstall
}
@ -67,7 +67,7 @@ ninjaCheckPhase() {
)
echoCmd 'check flags' "${flagsArray[@]}"
ninja "${flagsArray[@]}"
ninja "${flagsArray[@]}" | cat
fi
runHook postCheck