From 7f62f7be878a2dd17ad9824dc88df17613ccb1cd Mon Sep 17 00:00:00 2001 From: Fan WenJie Date: Fri, 20 Jan 2023 21:07:45 +0800 Subject: [PATCH] winebuild: Only set thumb_mode on ARM targets. Signed-off-by: Fan WenJie --- 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; }