-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Missing references to identifiers staticcrt
and native
in vcpkg/triplets/**
#21768
Comments
Hmm... @BillyONeal can you please take a look? Thanks. |
I'm not sure I understand what you mean by a triplet 'containing' the missing identifiers. The triplets don't contain the other identifiers either; they are synthesized from things vcpkg detects from the build environment most of the time, over here: https://github.com/microsoft/vcpkg-tool/blob/1b7edfa7196228006613d96657492e78d3e22043/src/vcpkg/platform-expression.cpp#L43
|
To be more precise is that I'm parsing the name of all the cmake files under Just to help me understand how these identifiers can change in the future, lets say I add under Also it seams I've taken a shortcut in how I evaluate the So if I rephrase everything, I would like to know where I could get a complete list of all identifiers that can be used in the |
OK, so you're assuming that you can take all the triplet names, separate by -s, and the resulting names will be all the identifiers? That's not generally going to be true and for things like staticcrt and native, cannot be true. You can't have a native "triplet" because whether it's native or not is a property of the "powers combined" of the host system and the triplet. You might be able to theoretically have a staticcrt one but I'm not sure what that even means generally. In general, the set of identifiers is open ended and is going to increase over time. Moreover, we are likely to extend it to allow users to pass in whatever they want there. arm32 also doesn't have an associated triplet name.
That is likely to break soon as we added support for CSS media query syntax for consistency with the ISO SBOM standards (ISO/IEC 5926:2021). microsoft/vcpkg-tool#267
A complete list is not possible, because the set is arbitrarily extendable by users. However, the authority of the complete list of ones the tool will cough up on its own is currently |
Also, can you back up a bit and describe why you want to evaluate these anyway? Perhaps we could just give you a command that dumps out a report with the information you need |
@Balnian ,Thanks for posting this issue. Please reopen this issue if it still be a problem for you. |
Hi,
I'm the maintainer for vcpkgx.com and recently I've found that both the
native
andstaticcrt
identifiers are never referenced in the triplets folder.I'll be fair by acknowledging that
native
is at least kind of documented in the predefined identifier expression in thesupports
section of the manifest documentationBut
staticcrt
is nowhere to be found.Is your feature request related to a problem? Please describe.
It's a problem for external tools makers because the triplets folder is the only reliable source for what kind of identifiers can be expected in the
supports
field of a manifest. This force community tool maintainers to keep hardcoded "patch" to allow complete evaluation of asupports
field in a manifest like in this exempleProposed solution
If possible can stubs of empty cmake files be created under the
triplets/**
containing the missing identifiers. But even now I'm not convinced that this is the best solution. (Consider this an open discussion.)Describe alternatives you've considered
That an index could be maintained/generated somewhere in the repo?
But this solution doesn't sound right, because it's not something that should exist in the vcpkg repo, all this data should be derivable from the repo existing data (used for normal vcpkg operation).
Additional context
Nope, everything is at the beginning of the issue.
The text was updated successfully, but these errors were encountered: