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
This commit is contained in:
Viktor Szakats 2024-06-14 17:50:21 +02:00
parent b37040dd60
commit 92f42761d2
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -62,7 +62,13 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
'-DCMAKE_INSTALL_PREFIX=C:/curl' \ '-DCMAKE_INSTALL_PREFIX=C:/curl' \
"-DCMAKE_BUILD_TYPE=${PRJ_CFG}" "-DCMAKE_BUILD_TYPE=${PRJ_CFG}"
# shellcheck disable=SC2086 # 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 if [ "${SHARED}" = 'ON' ]; then
cp -f -p _bld/lib/*.dll _bld/src/ cp -f -p _bld/lib/*.dll _bld/src/
fi fi