[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5/5] travis: pass a correct CC/CXX if CROSS_COMPILE is defined
After b41666f2c1 Xen no longer overwrites the names of the build toolchain utilities required during the build process, and instead uses the values from the environment. In that case, if the user wants to define CC or other variables to point to specific toolchain utilities to use it must also take into account that such variables must be prefixed with CROSS_COMPILE, since Xen will no longer do this. Fixes: b41666f2c1 ('config: don't hardcode toolchain binaries') Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- Cc: Doug Goldstein <cardoe@xxxxxxxxxx> --- scripts/travis-build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/travis-build b/scripts/travis-build index 0cb15a89e4..a264e286b2 100755 --- a/scripts/travis-build +++ b/scripts/travis-build @@ -1,6 +1,14 @@ #!/bin/bash -ex +# Set HOST{CC/CXX} in case we are cross building +export HOSTCC=${CC} +export HOSTCXX=${CXX} +# Prefix environment CC/CXX with CROSS_COMPILE if present +export CC=${CROSS_COMPILE}${CC} +export CXX=${CROSS_COMPILE}${CXX} + $CC --version +[[ "${CC}" != "${HOSTCC}" ]] && $HOSTCC --version # random config or default config if [[ "${RANDCONFIG}" == "y" ]]; then -- 2.20.1 (Apple Git-117) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |