Skip to content

Commit 85f4a4b

Browse files
committed
guix: Make V=1 more powerful for debugging
- Print commands in both unexpanded and expanded forms - Set VERBOSE=1 for CMake
1 parent e45fb7e commit 85f4a4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/guix/libexec/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ export LC_ALL=C
33
set -e -o pipefail
44
export TZ=UTC
55

6+
if [ -n "$V" ]; then
7+
# Print both unexpanded (-v) and expanded (-x) forms of commands as they are
8+
# read from this file.
9+
set -vx
10+
# Set VERBOSE for CMake-based builds
11+
export VERBOSE="$V"
12+
fi
13+
614
# Check that environment variables assumed to be set by the environment are set
715
echo "Building for platform triple ${HOST:?not set} with reference timestamp ${SOURCE_DATE_EPOCH:?not set}..."
816
echo "At most ${MAX_JOBS:?not set} jobs will run at once..."

0 commit comments

Comments
 (0)