winegcc: Support the mingw32 target without an i[3456]86- prefix.
This commit is contained in:
parent
4768b11c24
commit
d31f61414c
|
@ -1184,7 +1184,8 @@ static void parse_target_option( struct options *opts, const char *target )
|
||||||
|
|
||||||
/* get the CPU part */
|
/* get the CPU part */
|
||||||
|
|
||||||
if (!(p = strchr( spec, '-' ))) error( "Invalid target specification '%s'\n", target );
|
if ((p = strchr( spec, '-' )))
|
||||||
|
{
|
||||||
*p++ = 0;
|
*p++ = 0;
|
||||||
for (i = 0; i < sizeof(cpu_names)/sizeof(cpu_names[0]); i++)
|
for (i = 0; i < sizeof(cpu_names)/sizeof(cpu_names[0]); i++)
|
||||||
{
|
{
|
||||||
|
@ -1198,6 +1199,14 @@ static void parse_target_option( struct options *opts, const char *target )
|
||||||
error( "Unrecognized CPU '%s'\n", spec );
|
error( "Unrecognized CPU '%s'\n", spec );
|
||||||
platform = p;
|
platform = p;
|
||||||
if ((p = strrchr( p, '-' ))) platform = p + 1;
|
if ((p = strrchr( p, '-' ))) platform = p + 1;
|
||||||
|
}
|
||||||
|
else if (!strcmp( spec, "mingw32" ))
|
||||||
|
{
|
||||||
|
opts->target_cpu = CPU_x86;
|
||||||
|
platform = spec;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
error( "Invalid target specification '%s'\n", target );
|
||||||
|
|
||||||
/* get the OS part */
|
/* get the OS part */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue