aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-11-07 13:52:06 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-11-07 13:42:57 -0500
commitfaf757a1254a57aec7868ea6dffd062623e40756 (patch)
tree6c1fb123e7310236379979a758ae50d1aa25ab26
parentfa8a60bce9a0b407f8fbed5409fccaad1204b7e7 (diff)
ci: Guess the native host when not cross compiling
-rwxr-xr-xci/test/00_setup_env.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/test/00_setup_env.sh b/ci/test/00_setup_env.sh
index 07b191739a..c65054cf9e 100755
--- a/ci/test/00_setup_env.sh
+++ b/ci/test/00_setup_env.sh
@@ -23,8 +23,8 @@ export MAKEJOBS=${MAKEJOBS:--j4}
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}
+# Tests that run natively guess the host
+export HOST=${HOST:-$("$BASE_ROOT_DIR/depends/config.guess")}
# Whether to prefer BusyBox over GNU utilities
export USE_BUSY_BOX=${USE_BUSY_BOX:-false}
export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-true}