From d281c90c4b2f03b8b554da2bf9e3e25e77953baa Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 17 Feb 2021 21:36:29 +0100 Subject: [PATCH] winegcc: Properly set debug info type on msvc targets. Fixes a typo from 9faa5eeddd24a057d9ff522259c9dbdc6203c098. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- 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 );