vkd3d-compiler: Do not validate the target type if --print-target-types is specified.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-10-07 18:36:42 +03:30 committed by Alexandre Julliard
parent 0c6cd3ba21
commit e075ec5914

View File

@ -474,6 +474,9 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
}
}
if (options->print_target_types)
return true;
if (!validate_target_type(options->source_type, options->target_type))
{
fprintf(stderr, "Target type '%s' is invalid for source type '%s'.\n",
@ -482,9 +485,6 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
return false;
}
if (options->print_target_types)
return true;
if (optind < argc)
options->filename = argv[argc - 1];