diff options
author | Carl Dong <contact@carldong.me> | 2020-05-12 09:37:31 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-05-12 09:37:31 -0400 |
commit | 85f4a4b0822e3aa10310c4623eff719f301e9263 (patch) | |
tree | f4ba7a1928949d8814c173fafa8ae979c2a841c9 /contrib/guix/libexec/build.sh | |
parent | e45fb7e0d276ce13447a08e5270930bef3c56dd1 (diff) | |
download | bitcoin-85f4a4b0822e3aa10310c4623eff719f301e9263.tar.xz |
guix: Make V=1 more powerful for debugging
- Print commands in both unexpanded and expanded forms
- Set VERBOSE=1 for CMake
Diffstat (limited to 'contrib/guix/libexec/build.sh')
-rw-r--r-- | contrib/guix/libexec/build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 01f4518c73..5be3baeefa 100644 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -3,6 +3,14 @@ export LC_ALL=C set -e -o pipefail export TZ=UTC +if [ -n "$V" ]; then + # Print both unexpanded (-v) and expanded (-x) forms of commands as they are + # read from this file. + set -vx + # Set VERBOSE for CMake-based builds + export VERBOSE="$V" +fi + # Check that environment variables assumed to be set by the environment are set echo "Building for platform triple ${HOST:?not set} with reference timestamp ${SOURCE_DATE_EPOCH:?not set}..." echo "At most ${MAX_JOBS:?not set} jobs will run at once..." |