[PATCH vkd3d 1/3] vkd3d-compiler: Do not validate the target type if --print-target-types is specified.

Henri Verbeet hverbeet at codeweavers.com
Wed Oct 7 10:06:42 CDT 2020


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 programs/vkd3d-compiler/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/vkd3d-compiler/main.c b/programs/vkd3d-compiler/main.c
index 0b89ba86..7a1a5b0b 100644
--- a/programs/vkd3d-compiler/main.c
+++ b/programs/vkd3d-compiler/main.c
@@ -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];
 
-- 
2.11.0




More information about the wine-devel mailing list