[PATCH v4 0/1] MR1967: fix(winebuild): fix bug abort setting thumb_mode
For example, If host platform is ARM thumb, target platform is i386, The bug will set thumb_mode=1. -- v4: winebuild: fix bug abort setting thumb_mode https://gitlab.winehq.org/wine/wine/-/merge_requests/1967
From: Fan WenJie <fanwj(a)mail.ustc.edu.cn> Signed-off-by: Fan WenJie <fanwj(a)mail.ustc.edu.cn> --- tools/winebuild/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index aae223f9e57..7798276d79c 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -174,7 +174,7 @@ static void set_target( const char *name ) target_alias = xstrdup( name ); if (!parse_target( name, &target )) fatal_error( "Unrecognized target '%s'\n", name ); - if (target.cpu == CPU_ARM && is_pe()) thumb_mode = 1; + thumb_mode = target.cpu == CPU_ARM && is_pe(); if (is_pe()) unwind_tables = 1; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1967
participants (2)
-
Fan WenJie -
Fan WenJie (@fanwenjie)