Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add triplet variables to control abi entries for binarycache #816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Osyotr
Copy link

@Osyotr Osyotr commented Nov 19, 2022

VCPKG_IGNORED_ABI_KEYS: list of entries to remove from from vcpkg_abi_info.txt (key1;key2;...;keyN)
VCPKG_ADDITIONAL_ABI_ENTRIES: list of additional entries to add to vcpkg_abi_info.txt (key1 value1;key2 value2;...;keyN valueN)

It's now possible to completely override triplet hash or remove dependencies hashes from abi entries.
⚠Of course, this must be used with caution. ⚠

set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

# ⚠ This might break things, but we take the risk
set(VCPKG_ADDITIONAL_ABI_ENTRIES "my_custom_triplet_abi 9C6553BC-E762-458E-BDEF-2FEEBD6388BD")
set(VCPKG_IGNORED_ABI_KEYS "triplet_abi" "powershell")

if("${PORT}" STREQUAL "libpng")
    list(APPEND VCPKG_IGNORED_ABI_KEYS "zlib")
endif()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants