[vcpkg] (Implementation) Possibility to control the compiler hash for binary caching#16632
[vcpkg] (Implementation) Possibility to control the compiler hash for binary caching#16632klalumiere wants to merge 0 commit intomicrosoft:masterfrom klalumiere:master
Conversation
|
@klalumiere, thanks for the PR! @ras0219 @ras0219-msft, could you help review? |
|
Thanks for the PR! First, the current implementation will only work on non-Windows platforms -- on Windows, we clean out the environment variables in order to produce more reliable builds between machines, so these variables will need to be explicitly leaked in via either adding to our "clean environment" list or the user also explicitly using Second, the entire need for running Therefore, to directly fix these issues, I would suggest:
Alternatively, we could expose (effectively) |
Yeah I had thought about this: the plan was indeed to use
This is a great idea! I'll try to implement it soon. Thanks! 🙂 |
|
Moving this to draft for now; please feel free to mark it ready for review or close when you feel it's appropriate :) |
|
@ras0219-msft |
Describe the pull request
Use optional environment variables
VCPKG_CXX_COMPILER_HASH_CMAKE_EXPRESSIONandVCPKG_C_COMPILER_HASH_CMAKE_EXPRESSIONto control the compiler hash. If the variables are not defined, the default behavior remains.Example of value for
VCPKG_CXX_COMPILER_HASH_CMAKE_EXPRESSION:Which triplets are supported/not supported? Have you updated the CI baseline? The same. No.
Does your PR follow the maintainer guide? Yes