winebuild: Support the mingw32 target without an i[3456]86- prefix.

oldstable
Damjan Jovanovic 2012-06-14 20:34:47 +02:00 committed by Alexandre Julliard
parent 009ad8a475
commit 4768b11c24
1 changed files with 15 additions and 6 deletions

View File

@ -191,12 +191,21 @@ static void set_target( const char *target )
/* get the CPU part */
if (!(p = strchr( spec, '-' ))) fatal_error( "Invalid target specification '%s'\n", target );
*p++ = 0;
if ((target_cpu = get_cpu_from_name( spec )) == -1)
fatal_error( "Unrecognized CPU '%s'\n", spec );
platform = p;
if ((p = strrchr( p, '-' ))) platform = p + 1;
if ((p = strchr( spec, '-' )))
{
*p++ = 0;
if ((target_cpu = get_cpu_from_name( spec )) == -1)
fatal_error( "Unrecognized CPU '%s'\n", spec );
platform = p;
if ((p = strrchr( p, '-' ))) platform = p + 1;
}
else if (!strcmp( spec, "mingw32" ))
{
target_cpu = CPU_x86;
platform = spec;
}
else
fatal_error( "Invalid target specification '%s'\n", target );
/* get the OS part */