diff --git a/scripts/detect_compiler/portfile.cmake b/scripts/detect_compiler/portfile.cmake index 16c760706a0b5d..4f68faea46936b 100644 --- a/scripts/detect_compiler/portfile.cmake +++ b/scripts/detect_compiler/portfile.cmake @@ -2,6 +2,8 @@ set(LOGS ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-out.log ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-out.log ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-out.log + ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-err.log + ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-err.log ) foreach(LOG IN LISTS LOGS) @@ -22,7 +24,5 @@ foreach(LOG IN LISTS LOGS) if(EXISTS ${LOG}) file(READ "${LOG}" _contents) message("${_contents}") - return() endif() endforeach() -message(FATAL_ERROR "Could read logs: ${LOGS}") diff --git a/toolsrc/src/vcpkg/build.cpp b/toolsrc/src/vcpkg/build.cpp index 74796517800c78..be80048750117f 100644 --- a/toolsrc/src/vcpkg/build.cpp +++ b/toolsrc/src/vcpkg/build.cpp @@ -460,6 +460,11 @@ namespace vcpkg::Build System::print2("Detecting compiler hash for triplet ", triplet, "...\n"); auto buildpath = paths.buildtrees / "detect_compiler"; +#if !defined(_WIN32) + // TODO: remove when vcpkg.exe is in charge for acquiring tools. Change introduced in vcpkg v0.0.107. + // bootstrap should have already downloaded ninja, but making sure it is present in case it was deleted. + vcpkg::Util::unused(paths.get_tool_exe(Tools::NINJA)); +#endif std::vector cmake_args{ {"CURRENT_PORT_DIR", paths.scripts / "detect_compiler"}, {"CURRENT_BUILDTREES_DIR", buildpath},