Commit d941a899 authored by thomie's avatar thomie

Validate: by default do show commands

Show commands being run by default, so you can copy/paste and rerun them
on build failures/warnings.

See Note [Default build system verbosity].
parent 18c6ee2a
......@@ -140,9 +140,14 @@ fi
if type gmake > /dev/null 2> /dev/null
make="gmake -s"
make="make -s"
if [ $be_quiet -eq 1 ]; then
# See Note [Default build system verbosity].
make="$make -s"
if [ $testsuite_only -eq 0 ]; then
......@@ -169,7 +174,21 @@ thisdir=`utils/ghc-pwd/dist-boot/ghc-pwd`
echo "Validating=YES" > mk/
echo "ValidateSpeed=$speed" >> mk/
echo "ValidateHpc=$hpc" >> mk/
echo "V=0" >> mk/ # Less gunk
# Note [Default build system verbosity].
# From
# "The build system should clearly report what it's doing (and sometimes
# why), without being too verbose. It should emit actual command lines as
# much as possible, so that they can be inspected and cut & pasted."
# That should be the default. Only suppress commands, by setting V=0 and using
# `make -s`, when user explicitly asks for it with `./validate --quiet`.
if [ $be_quiet -eq 1 ]; then
# See Note [Default build system verbosity].
echo "V=0" >> mk/ # Less gunk
if [ $speed != "FAST" ]; then
# Build the "extra" packages (see ./packages), to enable more tests.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment