aboutsummaryrefslogtreecommitdiff
path: root/ci/test/00_setup_env.sh
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-11-04 13:57:02 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-11-04 14:10:24 -0500
commitfa8a60bce9a0b407f8fbed5409fccaad1204b7e7 (patch)
tree006b737378e41a30a3ae5d16f7ec916956833683 /ci/test/00_setup_env.sh
parentfa56bcbb010467fc26c8c50e077d050abaeda9b8 (diff)
downloadbitcoin-fa8a60bce9a0b407f8fbed5409fccaad1204b7e7.tar.xz
ci: Run non-cross-compile builds natively
Diffstat (limited to 'ci/test/00_setup_env.sh')
-rwxr-xr-xci/test/00_setup_env.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/test/00_setup_env.sh b/ci/test/00_setup_env.sh
index 8bc50da2c3..07b191739a 100755
--- a/ci/test/00_setup_env.sh
+++ b/ci/test/00_setup_env.sh
@@ -21,6 +21,9 @@ echo "Fallback to default values in env (if not yet set)"
export MAKEJOBS=${MAKEJOBS:--j4}
# A folder for the ci system to put temporary files (ccache, datadirs for tests, ...)
export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:-$BASE_ROOT_DIR/ci/scratch/}
+# What host to compile for. See also ./depends/README.md
+# Tests that need cross-compilation export the appropriate HOST.
+# Tests that run natively, do not set a HOST, but we assume x86_64 here if the calling environment did not set a HOST
export HOST=${HOST:-x86_64-unknown-linux-gnu}
# Whether to prefer BusyBox over GNU utilities
export USE_BUSY_BOX=${USE_BUSY_BOX:-false}