Introduce a -print-targets flag to the odin build and odin run commands to expose the list of all available build targets
#4709
novusnota
started this conversation in
Ideas/Requests
Replies: 2 comments 1 reply
-
|
You can actually do |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I'm pretty sure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there's no way to know what are the targets that can be set via the
-target:flag unless one pokes at Odin's sources and CI workflows. While that may not be a big deal for advanced users, as a general UX improvement it would be nice to have the list either present in thehelpdoc right under the description of-target:, or be exposed through-print-targets.There's a similar flag in
clangthat does almost exactly what I'm suggesting here.Essentially and as far as I can tell, to implement it for Odin one just needs to expose the strings from the
named_targetsarray that is defined here.Beta Was this translation helpful? Give feedback.
All reactions