diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-21 22:45:07 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-07-21 23:22:09 +0200 |
commit | d941a8993d1301949e6e64c92fa54324803754f6 (patch) | |
tree | f4d8b3229412769437e7888c1d85561cfcd9972f /validate | |
parent | 18c6ee2abc305feb98013f06b6e85117271097ea (diff) | |
download | haskell-d941a8993d1301949e6e64c92fa54324803754f6.tar.gz |
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].
Diffstat (limited to 'validate')
-rwxr-xr-x | validate | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -140,9 +140,14 @@ fi if type gmake > /dev/null 2> /dev/null then - make="gmake -s" + make="gmake" else - make="make -s" + make="make" +fi + +if [ $be_quiet -eq 1 ]; then + # See Note [Default build system verbosity]. + make="$make -s" fi if [ $testsuite_only -eq 0 ]; then @@ -169,7 +174,21 @@ thisdir=`utils/ghc-pwd/dist-boot/ghc-pwd` echo "Validating=YES" > mk/are-validating.mk echo "ValidateSpeed=$speed" >> mk/are-validating.mk echo "ValidateHpc=$hpc" >> mk/are-validating.mk -echo "V=0" >> mk/are-validating.mk # Less gunk + +# Note [Default build system verbosity]. +# +# From https://ghc.haskell.org/trac/ghc/wiki/Design/BuildSystem: +# +# "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/are-validating.mk # Less gunk +fi if [ $speed != "FAST" ]; then # Build the "extra" packages (see ./packages), to enable more tests. |