mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-06 23:58:35 +02:00
* always use ppc<targetcpu> instead of ppcross<targetcpu> on darwin,
because due to the mach-o executable format which can contain binaries for different architectures in a single file, different names for native and cross compilers are not used on Mac OS X (mantis #10067) git-svn-id: trunk@10270 -
This commit is contained in:
parent
4774f766e0
commit
a497aec91d
@ -214,7 +214,16 @@ program fpc;
|
|||||||
else
|
else
|
||||||
error('Illegal processor type "'+processorstr+'"');
|
error('Illegal processor type "'+processorstr+'"');
|
||||||
|
|
||||||
|
{$ifndef darwin}
|
||||||
ppcbin:='ppcross'+cpusuffix;
|
ppcbin:='ppcross'+cpusuffix;
|
||||||
|
{$else not darwin}
|
||||||
|
{ the mach-o format supports "fat" binaries whereby }
|
||||||
|
{ a single executable contains machine code for }
|
||||||
|
{ several architectures -> it is counter-intuitive }
|
||||||
|
{ and non-standard to use different binary names }
|
||||||
|
{ for cross-compilers vs. native compilers }
|
||||||
|
ppcbin:='ppc'+cpusuffix;
|
||||||
|
{$endif not darwin}
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
else if pos('-Xp',s)=1 then
|
else if pos('-Xp',s)=1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user