-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[msquic] Do not rename binaries #40947
Conversation
How is this renaming the binary? It's changing the name in the build, not renaming it afterwards. |
TLDR: The HOW is okay, but the WHAT is already wrong.
It appends a "if the upstream library has the same name in release and debug, we should not introduce a new name." This is about not breaking upstream's choice aand downstreams' expectations as they might be encoded in
This is another part of the guideline. If binaries are renamed (which is allowed/encouraged by "Static and shared variants often should be renamed to a common scheme"), then it must be done in this way. |
in practice having a same DLLs with same name, but incompatible in the runtime and even link time leads to some very odd behaviour. For instance before 40938 nothing was broken at build time, CMake was happily linking adding |
No new information. Not different from other ports. vcpkg has different roots to separate debug from release. Upstream determines the names, and the ports shall not change it. |
Who calls that? Who initializes the search paths for runtime artifacts? |
Consumer of msquic, my project which uses msquic for deps. that is what prompted #40938 , because debug build was picking wrong DLL when using Ninja-Multi generator. nothing fancy otherwise:
|
Multi-config, the incomplete story... |
If there is a guidelines not to rename from upstream, I guess I should take this change upstream then |
I agree, I was thinking of a different bit about renaming DLLs post build. |
Amends #40938.
https://learn.microsoft.com/en-us/vcpkg/contributing/maintainer-guide#do-not-rename-binaries-outside-the-names-given-by-upstream