]> git.wh0rd.org Git - elf2flt.git/commitdiff
travis: dump config.log on configure failures
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 May 2020 11:25:07 +0000 (07:25 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 May 2020 11:25:39 +0000 (07:25 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
travis/main.sh

index 7a7e5f43c5626d89d5d9e14386d399bf5b0646de..42923103ca03168627ba803ca908905126aaa544 100755 (executable)
@@ -25,10 +25,13 @@ build_one() {
        travis_fold start ${arch} "binutils-${bver}"
        v mkdir -p "${build}"
        pushd "${build}" >/dev/null
-       v "${S}"/configure \
+       if ! v "${S}"/configure \
                --enable-werror \
                --with-binutils-build-dir="${S}"/../prebuilts-binutils-libs/output/${bver} \
-               --target=${arch}-elf
+               --target=${arch}-elf ; then
+               cat config.log
+               exit 1
+       fi
        m
        m check
        popd >/dev/null