widl: Allow switching between 32 and 64 bit ARM with the -m32/64 option.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjo 2021-05-16 23:57:57 +03:00 committed by Alexandre Julliard
parent 53cba4f066
commit 4766a01818
1 changed files with 5 additions and 1 deletions

View File

@ -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: