From faf757a1254a57aec7868ea6dffd062623e40756 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 7 Nov 2019 13:52:06 -0500 Subject: [PATCH] ci: Guess the native host when not cross compiling --- ci/test/00_setup_env.sh | 4 ++-- 1 file 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}