Module: wine Branch: master Commit: 8670876db9b7b918cb7893a16d7edde6b40a607a URL: https://gitlab.winehq.org/wine/wine/-/commit/8670876db9b7b918cb7893a16d7edde...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 22 21:04:35 2023 +0100
makedep: Don't add dependencies for tests of disabled dlls.
---
tools/makedep.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c index 532145de292..b94a221854d 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -3558,6 +3558,11 @@ static void output_test_module( struct makefile *make, unsigned int arch ) output( "\t%secho "%s_test.exe TESTRES \"%s\"" | %s -u -o $@\n", cmd_prefix( "WRC" ), basemodule, obj_dir_path( make, stripped ), tools_path( make, "wrc" ));
+ if (make->disabled[arch] || (parent && parent->disabled[arch])) + { + make->ok_files = empty_strarray; + return; + } output_filenames_obj_dir( make, make->ok_files ); output( ": %s", obj_dir_path( make, testmodule )); if (parent) @@ -3568,8 +3573,7 @@ static void output_test_module( struct makefile *make, unsigned int arch ) } output( "\n" ); output( "%s %s:", obj_dir_path( make, "check" ), obj_dir_path( make, "test" )); - if (!make->disabled[arch] && parent && !parent->disabled[arch]) - output_filenames_obj_dir( make, make->ok_files ); + output_filenames_obj_dir( make, make->ok_files ); output( "\n" ); strarray_add_uniq( &make->phony_targets, obj_dir_path( make, "check" )); strarray_add_uniq( &make->phony_targets, obj_dir_path( make, "test" ));