blob: e6da4bb1f7977fde849d327076fec3e778b9d0e7 [file] [log] [blame]
Dmitry V. Levincb7409c2016-06-18 22:53:25 +00001#!/bin/sh -ex
2
3case "$CC" in
4 gcc)
5 ENABLE_GCC_WERROR=--enable-gcc-Werror
6 ;;
7 clang-*)
8 # clang -mx32 fails with the following error:
9 # clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
10 export st_cv_mx32_runtime=no
11 ;;
12esac
13
14case "${TARGET-}" in
15 x32)
16 CC="$CC -mx32"
17 ;;
18 x86)
19 CC="$CC -m32"
20 export DISTCHECK_CONFIGURE_FLAGS='--build=i686-pc-linux-gnu'
21 ;;
22esac
23
24$CC --version
25export CC_FOR_BUILD="$CC"
26
27./git-set-file-times
28./bootstrap
29./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
30
31j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
32make -k $j distcheck VERBOSE=${VERBOSE-}