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() {
91
91
-- " $@ "
92
92
}
93
93
94
+ # Make sure an output directory exists for our builds
95
+ OUTDIR=" ${OUTDIR:- ${PWD} / output} "
96
+ [ -e " $OUTDIR " ] || mkdir -p " $OUTDIR "
97
+
94
98
# ########
95
99
# Build #
96
100
# ########
@@ -189,6 +193,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
189
193
--pure \
190
194
--no-cwd \
191
195
--share=" $PWD " =/bitcoin \
196
+ --share=" $OUTDIR " =/outdir \
192
197
--expose=" $( git rev-parse --git-common-dir) " \
193
198
${SOURCES_PATH: +--share=" $SOURCES_PATH " } \
194
199
--max-jobs=" $MAX_JOBS " \
@@ -199,6 +204,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
199
204
SOURCE_DATE_EPOCH=" ${SOURCE_DATE_EPOCH:? unable to determine value} " \
200
205
${V: +V=1} \
201
206
${SOURCES_PATH: +SOURCES_PATH=" $SOURCES_PATH " } \
207
+ OUTDIR=/outdir \
202
208
bash -c " cd /bitcoin && bash contrib/guix/libexec/build.sh"
203
209
)
204
210
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..."
23
23
# $HOSTs after successfully building.
24
24
BASEPREFIX=" ${PWD} /depends"
25
25
26
- # Setup an output directory for our build
27
- OUTDIR=" ${OUTDIR:- ${PWD} / output} "
28
- [ -e " $OUTDIR " ] || mkdir -p " $OUTDIR "
29
-
30
26
# Setup the directory where our Bitcoin Core build for HOST will occur
31
27
DISTSRC=" ${DISTSRC:- ${PWD} / distsrc-${HOST} } "
32
28
if [ -e " $DISTSRC " ]; then
You can’t perform that action at this time.
0 commit comments