From: Viktor Szakats Date: Fri, 14 Jun 2024 15:50:21 +0000 (+0200) Subject: appveyor: dump build logs on failure in VS2008 jobs X-Git-Tag: curl-8_9_0~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92f42761d265faf84886a59d5002d4fcff87410a;p=thirdparty%2Fcurl.git appveyor: dump build logs on failure in VS2008 jobs This seems to be the only way to see what actual toolchain commands were run, and with what arguments. Without `dos2unix`, `cat` output comes out empty. Closes #13957 --- diff --git a/appveyor.sh b/appveyor.sh index 4f2b68ba6a..1cd7f1851d 100644 --- a/appveyor.sh +++ b/appveyor.sh @@ -62,7 +62,13 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then '-DCMAKE_INSTALL_PREFIX=C:/curl' \ "-DCMAKE_BUILD_TYPE=${PRJ_CFG}" # shellcheck disable=SC2086 - cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-} + if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then + if [ "${PRJ_GEN}" = 'Visual Studio 9 2008' ]; then + find . -name BuildLog.htm -exec dos2unix '{}' + + find . -name BuildLog.htm -exec cat '{}' + + fi + false + fi if [ "${SHARED}" = 'ON' ]; then cp -f -p _bld/lib/*.dll _bld/src/ fi