Dmitry V. Levin
f6c70f9f19
* .travis.yml (matric): Add musl-gcc/x86. * travis-build.sh [TARGET == x86]: Specify --target along with --build to configure. * travis-install.sh [CC == musl-gcc && TARGET == x32]: Add -mx32 to $CC. [CC == musl-gcc && TARGET == x86]: Add -m32 to $CC. Specify --build and --target to musl configure invocation.
33 lines
701 B
Bash
Executable File
33 lines
701 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
case "$CC" in
|
|
gcc)
|
|
ENABLE_GCC_WERROR=--enable-gcc-Werror
|
|
;;
|
|
clang-*)
|
|
# clang -mx32 fails with the following error:
|
|
# clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
|
|
export st_cv_mx32_runtime=no
|
|
;;
|
|
esac
|
|
|
|
case "${TARGET-}" in
|
|
x32)
|
|
CC="$CC -mx32"
|
|
;;
|
|
x86)
|
|
CC="$CC -m32"
|
|
export DISTCHECK_CONFIGURE_FLAGS='--build=i686-pc-linux-gnu --target=i686-pc-linux-gnu'
|
|
;;
|
|
esac
|
|
|
|
$CC --version
|
|
export CC_FOR_BUILD="$CC"
|
|
|
|
./git-set-file-times
|
|
./bootstrap
|
|
./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
|
|
|
|
j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
|
|
make -k $j distcheck VERBOSE=${VERBOSE-}
|