* Define NEEDCROSSBINUTILS when compiling from darwin to non-darwin platforms

git-svn-id: trunk@15226 -
This commit is contained in:
joost 2010-05-04 20:36:20 +00:00
parent 700aa3cf11
commit 4ab15526cd

View File

@ -98,9 +98,10 @@ begin
result := '';
// On Darwin there is never a need for a crossbinutils prefix
if SameText(BuildOSTarget,'Darwin') then
Exit;
if (BuildTarget = 'i386') or (BuildTarget = 'x86_64') then
result := '#IFNDEF ' + BuildOSTarget + LineEnding +
'#DEFINE NEEDCROSSBINUTILS' + LineEnding +
'#ENDIF'
else if (BuildTarget = 'i386') or (BuildTarget = 'x86_64') then
begin
// Cross-binutils are not needed to compile for i386 on an x86_64 system
result := '#IFNDEF CPUI386' + LineEnding +