Martin Storsjo : widl: Allow switching between 32 and 64 bit ARM with the -m32/64 option.
Alexandre Julliard
julliard at winehq.org
Mon May 17 15:45:29 CDT 2021
Module: wine
Branch: master
Commit: 4766a018184d2ffa95657dbc926dd0cfe81158c3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4766a018184d2ffa95657dbc926dd0cfe81158c3
Author: Martin Storsjo <martin at martin.st>
Date: Sun May 16 23:57:57 2021 +0300
widl: Allow switching between 32 and 64 bit ARM with the -m32/64 option.
Signed-off-by: Martin Storsjo <martin at martin.st>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/widl/widl.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/widl/widl.c b/tools/widl/widl.c
index 8da887ea636..992eef73e82 100644
--- a/tools/widl/widl.c
+++ b/tools/widl/widl.c
@@ -796,8 +796,12 @@ int main(int argc,char *argv[])
if (pointer_size == 4) target_cpu = CPU_x86;
else pointer_size = 8;
break;
+ case CPU_ARM:
+ if (pointer_size == 8) target_cpu = CPU_ARM64;
+ else pointer_size = 4;
+ break;
case CPU_ARM64:
- if (pointer_size == 4) error( "Cannot build 32-bit code for this CPU\n" );
+ if (pointer_size == 4) target_cpu = CPU_ARM;
pointer_size = 8;
break;
case CPU_POWERPC64:
More information about the wine-cvs
mailing list