mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:29:24 +02: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 := '';
|
||||
// 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 +
|
||||
|
Loading…
Reference in New Issue
Block a user