mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 18:50:07 +00:00
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 );
|
||||
*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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue