Add armhf build to Travis CI

Fixes #676
This commit is contained in:
Lilian A. Moraru
2017-12-17 15:41:51 +02:00
committed by Andrew Gallant
parent d73a75d6cd
commit d775259ed9
5 changed files with 62 additions and 28 deletions

View File

@@ -31,16 +31,19 @@ install_standard_crates() {
configure_cargo() {
local prefix=$(gcc_prefix)
if [ -n "${prefix}" ]; then
local gcc_suffix=
test -n "${GCC_VERSION}" && gcc_suffix="-${GCC_VERSION}" || :
local gcc="${prefix}gcc${gcc_suffix}"
if [ ! -z $prefix ]; then
# information about the cross compiler
${prefix}gcc -v
${gcc} -v
# tell cargo which linker to use for cross compilation
mkdir -p .cargo
cat >>.cargo/config <<EOF
[target.$TARGET]
linker = "${prefix}gcc"
linker = "${gcc}"
EOF
fi
}