winegcc: Properly set debug info type on msvc targets.

Fixes a typo from 9faa5eeddd.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-02-17 21:36:29 +01:00 committed by Alexandre Julliard
parent 2f93be4bdd
commit d281c90c4b
1 changed files with 2 additions and 2 deletions

View File

@ -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 );