mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
winegcc: Enable SafeSEH only on i386.
SafeSEH is not applicable to architectures other than i386. This fixes compiling with the clang ARM assembler, which cannot parse ".def @feat.00" since "@" is parsed as the start of a line comment.
This commit is contained in:
parent
057467bff9
commit
9de7c79153
|
@ -989,7 +989,8 @@ static const char *build_spec_obj( struct options *opts, const char *spec_file,
|
||||||
if (opts->large_address_aware) strarray_add( &spec_args, "--large-address-aware" );
|
if (opts->large_address_aware) strarray_add( &spec_args, "--large-address-aware" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts->target.platform == PLATFORM_WINDOWS) strarray_add(&spec_args, "--safeseh");
|
if (opts->target.platform == PLATFORM_WINDOWS && opts->target.cpu == CPU_i386)
|
||||||
|
strarray_add(&spec_args, "--safeseh");
|
||||||
|
|
||||||
if (entry_point)
|
if (entry_point)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue