Don't track the compiler version on platforms with stable ABIs.

This commit is contained in:
David Chisnall 2021-09-28 09:22:34 +01:00
Родитель 3205edbaf5
Коммит 98c17c0b79
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -2,12 +2,20 @@
# can be used by CI to ensure that we're able to use the versions from the
# cache.
if (NOT DEFINED FIXED_VCPKG_VERSION)
set(FIXED_VCPKG_VERSION master)
set(FIXED_VCPKG_ZIP refs/heads/master)
set(FIXED_VCPKG_VERSION master)
set(FIXED_VCPKG_ZIP refs/heads/master)
else()
set(FIXED_VCPKG_ZIP ${FIXED_VCPKG_VERSION})
set(FIXED_VCPKG_ZIP ${FIXED_VCPKG_VERSION})
endif ()
# On non-Windows platforms, where we have a stable ABI across compiler
# versions, don't use the hash of the compiler in determining the ID of a
# cached binary. Allows us to use the same build of LLVM for different clang /
# gcc versions on the same OS.
if (NOT WIN32)
set(VCPKG_DISABLE_COMPILER_TRACKING ON)
endif()
# Not used yet, but we may want to add custom triplets for ASAN and so on.
#set("VCPKG_OVERLAY_TRIPLETS" "${CMAKE_SOURCE_DIR}/overlay-triplets")
set("VCPKG_OVERLAY_PORTS" "${CMAKE_SOURCE_DIR}/overlay-ports")