Skip to content
Commit bec7e039 authored by Kévin Petit's avatar Kévin Petit Committed by David Neto
Browse files

Add all accepted target environments to the tools' help texts (#2687)



Several tools take a --target-env option to specify the SPIR-V
environment to use. They all use spvParseTargetEnv to parse
the user-specified string and select the appropriate spv_target_env
but all tools list only _some_ of the valid values in their help
text.

This change makes the help text construction automatic from the
full list of valid values, establishing a single source of truth
for the values printed in the help text. The new utility function
added allows its user to specify padding and wrapping constraints
so the produced strings fits well in the various help texts.

Signed-off-by: default avatarKévin Petit <kpet@free.fr>
parent 51b0d5ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment