mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 22:13:48 +08:00
aef838536e
* [vcpkg] Refactor out abi_tags_from_pre_build_info() * [vcpkg] Track Windows toolchain file in triplet hash * [vcpkg] Improve error messages when constructing PreBuildInfo * [vcpkg] Extract InstallPlanAction::BuildAbiInfo * [vcpkg] Extract Build::EnvCache and private-impl VcpkgPaths * [vcpkg] Enable compiler hash detection when binarycaching is enabled * [vcpkg] Downgrade warning about missing ABI keys When binarycaching is not enabled, this warning is spurious and provides no user value. * [vcpkg] Cleanup * [vcpkg] Refactor compiler tracking into triplet abi computation Move several static global caches into VcpkgPaths/EnvCache. Add feature flag 'compilertracking' to enable the new feature. * [vcpkg] Refactor out PreBuildInfo::using_vcvars() Move VcpkgTripletVar into build.cpp because it is not used outside that file. * [vcpkg] Address some code analysis warnings Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
29 lines
718 B
CMake
29 lines
718 B
CMake
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
|
|
)
|
|
|
|
foreach(LOG IN LISTS LOGS)
|
|
file(REMOVE ${LOG})
|
|
if(EXISTS ${LOG})
|
|
message(FATAL_ERROR "Could not remove ${LOG}")
|
|
endif()
|
|
endforeach()
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
|
|
PREFER_NINJA
|
|
)
|
|
|
|
foreach(LOG IN LISTS LOGS)
|
|
if(EXISTS ${LOG})
|
|
file(READ "${LOG}" _contents)
|
|
message("${_contents}")
|
|
return()
|
|
endif()
|
|
endforeach()
|
|
message(FATAL_ERROR "Could read logs: ${LOGS}")
|