Jacek Caban : winegcc: Properly set debug info type on msvc targets.

Alexandre Julliard julliard at winehq.org
Wed Feb 17 16:23:34 CST 2021


Module: wine
Branch: master
Commit: d281c90c4b2f03b8b554da2bf9e3e25e77953baa
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d281c90c4b2f03b8b554da2bf9e3e25e77953baa

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Feb 17 21:36:29 2021 +0100

winegcc: Properly set debug info type on msvc targets.

Fixes a typo from 9faa5eeddd24a057d9ff522259c9dbdc6203c098.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winegcc/winegcc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index e72f234d94b..c812af48670 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -560,12 +560,12 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
             strarray_add(link_args, "-Wl,-debug");
             strarray_add(link_args, strmake("-Wl,-pdb:%s", opts->debug_file));
         }
+        else if (!opts->strip)
+            strarray_add(link_args, "-Wl,-debug:dwarf");
 
         if (opts->out_implib)
             strarray_add(link_args, strmake("-Wl,-implib:%s", opts->out_implib));
 
-        else if (!opts->strip)
-            strarray_add(link_args, "-Wl,-debug:dwarf");
         strarray_add( link_args, strmake( "-Wl,-filealign:%s", opts->file_align ? opts->file_align : "0x1000" ));
 
         strarray_addall( link_args, flags );




More information about the wine-cvs mailing list