File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,10 @@ time-machine() {
9191 -- " $@ "
9292}
9393
94+ # Make sure an output directory exists for our builds
95+ OUTDIR=" ${OUTDIR:- ${PWD} / output} "
96+ [ -e " $OUTDIR " ] || mkdir -p " $OUTDIR "
97+
9498# ########
9599# Build #
96100# ########
@@ -189,6 +193,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
189193 --pure \
190194 --no-cwd \
191195 --share=" $PWD " =/bitcoin \
196+ --share=" $OUTDIR " =/outdir \
192197 --expose=" $( git rev-parse --git-common-dir) " \
193198 ${SOURCES_PATH: +--share=" $SOURCES_PATH " } \
194199 --max-jobs=" $MAX_JOBS " \
@@ -199,6 +204,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
199204 SOURCE_DATE_EPOCH=" ${SOURCE_DATE_EPOCH:? unable to determine value} " \
200205 ${V: +V=1} \
201206 ${SOURCES_PATH: +SOURCES_PATH=" $SOURCES_PATH " } \
207+ OUTDIR=/outdir \
202208 bash -c " cd /bitcoin && bash contrib/guix/libexec/build.sh"
203209 )
204210
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ echo "At most ${MAX_JOBS:?not set} jobs will run at once..."
2323# $HOSTs after successfully building.
2424BASEPREFIX=" ${PWD} /depends"
2525
26- # Setup an output directory for our build
27- OUTDIR=" ${OUTDIR:- ${PWD} / output} "
28- [ -e " $OUTDIR " ] || mkdir -p " $OUTDIR "
29-
3026# Setup the directory where our Bitcoin Core build for HOST will occur
3127DISTSRC=" ${DISTSRC:- ${PWD} / distsrc-${HOST} } "
3228if [ -e " $DISTSRC " ]; then
You can’t perform that action at this time.
0 commit comments