Skip to content
Snippets Groups Projects
Commit 4768b11c authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard
Browse files

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

parent 009ad8a4
Branches
Tags
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment