dmd icon indicating copy to clipboard operation
dmd copied to clipboard

Add __traits(getTargetInfo, "predefinedVersions")

Open ibuclaw opened this issue 3 years ago • 4 comments
trafficstars

This information is already printed to console with -v option. As an experiment, this exposes that same information to __traits.

ibuclaw avatar Jun 13 '22 10:06 ibuclaw

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#14209"

dlang-bot avatar Jun 13 '22 10:06 dlang-bot

Is this only ones passed on the command line, or does this also include ones declared at module scope?

thewilsonator avatar Jun 13 '22 10:06 thewilsonator

Is this only ones passed on the command line, or does this also include ones declared at module scope?

Only command-line. Module scope versions would be somewhere else - I'm guessing you'd have to pass which module as an argument, or take it from the current scope if not null.

ibuclaw avatar Jun 13 '22 14:06 ibuclaw

Only command-line.

Noted. Please ensure that docs and changelog reflect this.

thewilsonator avatar Jun 13 '22 14:06 thewilsonator