mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-22 19:39:29 +01:00
* Define NEEDCROSSBINUTILS when compiling from darwin to non-darwin platforms
git-svn-id: trunk@15226 -
This commit is contained in:
parent
700aa3cf11
commit
4ab15526cd
@ -98,9 +98,10 @@ begin
|
|||||||
result := '';
|
result := '';
|
||||||
// On Darwin there is never a need for a crossbinutils prefix
|
// On Darwin there is never a need for a crossbinutils prefix
|
||||||
if SameText(BuildOSTarget,'Darwin') then
|
if SameText(BuildOSTarget,'Darwin') then
|
||||||
Exit;
|
result := '#IFNDEF ' + BuildOSTarget + LineEnding +
|
||||||
|
'#DEFINE NEEDCROSSBINUTILS' + LineEnding +
|
||||||
if (BuildTarget = 'i386') or (BuildTarget = 'x86_64') then
|
'#ENDIF'
|
||||||
|
else if (BuildTarget = 'i386') or (BuildTarget = 'x86_64') then
|
||||||
begin
|
begin
|
||||||
// Cross-binutils are not needed to compile for i386 on an x86_64 system
|
// Cross-binutils are not needed to compile for i386 on an x86_64 system
|
||||||
result := '#IFNDEF CPUI386' + LineEnding +
|
result := '#IFNDEF CPUI386' + LineEnding +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user