Skip to content

Commit faf757a

Browse files
author
MarcoFalke
committed
ci: Guess the native host when not cross compiling
1 parent fa8a60b commit faf757a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/test/00_setup_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export MAKEJOBS=${MAKEJOBS:--j4}
2323
export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:-$BASE_ROOT_DIR/ci/scratch/}
2424
# What host to compile for. See also ./depends/README.md
2525
# Tests that need cross-compilation export the appropriate HOST.
26-
# Tests that run natively, do not set a HOST, but we assume x86_64 here if the calling environment did not set a HOST
27-
export HOST=${HOST:-x86_64-unknown-linux-gnu}
26+
# Tests that run natively guess the host
27+
export HOST=${HOST:-$("$BASE_ROOT_DIR/depends/config.guess")}
2828
# Whether to prefer BusyBox over GNU utilities
2929
export USE_BUSY_BOX=${USE_BUSY_BOX:-false}
3030
export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-true}

0 commit comments

Comments
 (0)