From 85f4a4b0822e3aa10310c4623eff719f301e9263 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Tue, 12 May 2020 09:37:31 -0400 Subject: [PATCH] guix: Make V=1 more powerful for debugging - Print commands in both unexpanded and expanded forms - Set VERBOSE=1 for CMake --- contrib/guix/libexec/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 01f4518c7..5be3baeef 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..."