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

This commit is contained in:
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 */ /* get the CPU part */
if (!(p = strchr( spec, '-' ))) fatal_error( "Invalid target specification '%s'\n", target ); if ((p = strchr( spec, '-' )))
*p++ = 0; {
if ((target_cpu = get_cpu_from_name( spec )) == -1) *p++ = 0;
fatal_error( "Unrecognized CPU '%s'\n", spec ); if ((target_cpu = get_cpu_from_name( spec )) == -1)
platform = p; fatal_error( "Unrecognized CPU '%s'\n", spec );
if ((p = strrchr( p, '-' ))) platform = p + 1; 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 */ /* get the OS part */