winebuild: Move target filtering to assign_exports.
This commit is contained in:
parent
3c9ede8abc
commit
3f421410c1
1 changed files with 2 additions and 7 deletions
|
@ -623,13 +623,6 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
|
||||||
assert( 0 );
|
assert( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((odp->flags & FLAG_CPU_MASK) && !(odp->flags & FLAG_CPU(target.cpu)))
|
|
||||||
{
|
|
||||||
/* ignore this entry point */
|
|
||||||
spec->nb_entry_points--;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data_only && !(odp->flags & FLAG_FORWARD))
|
if (data_only && !(odp->flags & FLAG_FORWARD))
|
||||||
{
|
{
|
||||||
error( "Only forwarded entry points are allowed in data-only mode\n" );
|
error( "Only forwarded entry points are allowed in data-only mode\n" );
|
||||||
|
@ -959,6 +952,8 @@ static void assign_exports( DLLSPEC *spec )
|
||||||
for (i = 0; i < spec->nb_entry_points; i++)
|
for (i = 0; i < spec->nb_entry_points; i++)
|
||||||
{
|
{
|
||||||
ORDDEF *entry = &spec->entry_points[i];
|
ORDDEF *entry = &spec->entry_points[i];
|
||||||
|
if ((entry->flags & FLAG_CPU_MASK) && !(entry->flags & FLAG_CPU(target.cpu)))
|
||||||
|
continue;
|
||||||
exports->entry_points[exports->nb_entry_points++] = entry;
|
exports->entry_points[exports->nb_entry_points++] = entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue