winebuild: Support the mingw32 target without an i[3456]86- prefix.
This commit is contained in:
parent
009ad8a475
commit
4768b11c24
|
@ -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 );
|
||||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue