Module: wine Branch: master Commit: 425bd55b02e375b9ac8f79b254ce3ca5c9e72719 URL: https://gitlab.winehq.org/wine/wine/-/commit/425bd55b02e375b9ac8f79b254ce3ca...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Sep 7 16:02:12 2023 +0200
winegcc: Don't disable unwind tables for PE targets.
---
tools/winegcc/winegcc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 34f8a1e4e87..968e472227e 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -832,8 +832,6 @@ static struct strarray get_winebuild_args(struct options *opts) for (i = 0; i < opts->prefix.count; i++) strarray_add( &spec_args, strmake( "-B%s", opts->prefix.str[i] )); strarray_addall( &spec_args, opts->winebuild_args ); - if (opts->unwind_tables) strarray_add( &spec_args, "-fasynchronous-unwind-tables" ); - else strarray_add( &spec_args, "-fno-asynchronous-unwind-tables" ); return spec_args; }
@@ -961,6 +959,7 @@ static const char *build_spec_obj( struct options *opts, const char *spec_file, { if (opts->pic) strarray_add(&spec_args, "-fPIC"); if (opts->use_msvcrt) strarray_add(&spec_args, "-mno-cygwin"); + if (opts->unwind_tables) strarray_add( &spec_args, "-fasynchronous-unwind-tables" ); } strarray_add(&spec_args, opts->shared ? "--dll" : "--exe"); if (opts->fake_module)