Skip to content

Commit f8ca8c5

Browse files
committed
guix: Supply --keep-failed for debugging
1 parent b805dbb commit f8ca8c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/guix/guix-build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ time-machine() {
150150
guix time-machine --url=https://github.com/dongcarl/guix.git \
151151
--commit=b066c25026f21fb57677aa34692a5034338e7ee3 \
152152
--max-jobs="$MAX_JOBS" \
153+
--keep-failed \
153154
${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"} \
154155
${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_TIMEMACHINE_FLAGS} \
155156
-- "$@"
@@ -259,6 +260,12 @@ EOF
259260
# make the downloaded depends sources available to it. The sources
260261
# should have been downloaded prior to this invocation.
261262
#
263+
# --keep-failed keep build tree of failed builds
264+
#
265+
# When builds of the Guix environment itself (not Bitcoin Core)
266+
# fail, it is useful for the build tree to be kept for debugging
267+
# purposes.
268+
#
262269
# ${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"}
263270
#
264271
# fetch substitute from SUBSTITUTE_URLS if they are
@@ -281,6 +288,7 @@ EOF
281288
${SOURCES_PATH:+--share="$SOURCES_PATH"} \
282289
${BASE_CACHE:+--share="$BASE_CACHE"} \
283290
--max-jobs="$MAX_JOBS" \
291+
--keep-failed \
284292
${SUBSTITUTE_URLS:+--substitute-urls="$SUBSTITUTE_URLS"} \
285293
${ADDITIONAL_GUIX_COMMON_FLAGS} ${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
286294
-- env HOST="$host" \

0 commit comments

Comments
 (0)