From 92f42761d265faf84886a59d5002d4fcff87410a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 14 Jun 2024 17:50:21 +0200 Subject: [PATCH] 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 --- appveyor.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.47.3