[PATCH 01/10] tools/makedep: added support for not stripping some test modules

Eric Pouech eric.pouech at gmail.com
Thu Jul 15 02:38:58 CDT 2021


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 tools/makedep.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tools/makedep.c b/tools/makedep.c
index db076d0c057..2b72d5ed6e6 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -3538,6 +3538,14 @@ static void output_shared_lib( struct makefile *make )
     strarray_addall( &make->all_targets, names );
 }
 
+/*******************************************************************
+ *         need_debug_info_test
+ * tell whether debug info can be stripped from test module
+ */
+static int need_debug_info_test( const char* name )
+{
+    return strcmp( name, "dbghelp_test.exe" ) == 0;
+}
 
 /*******************************************************************
  *         output_test_module
@@ -3570,7 +3578,8 @@ static void output_test_module( struct makefile *make )
     output( "\n" );
     output( "%s%s:\n", obj_dir_path( make, stripped ), ext );
     output_winegcc_command( make, make->is_cross );
-    output_filename( "-s" );
+    if (!need_debug_info_test( testmodule ))
+        output_filename( "-s" );
     output_filename( strmake( "-Wb,-F,%s", testmodule ));
     output_filenames( make->extradllflags );
     output_filenames_obj_dir( make, make->is_cross ? make->crossobj_files : make->object_files );




More information about the wine-devel mailing list