mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:50:32 +02:00
codetools: fpc sources: use linux as secondary choice for android, patch #23927
git-svn-id: trunk@40483 -
This commit is contained in:
parent
528ac72e0e
commit
09eff56762
@ -133,8 +133,8 @@ const
|
||||
FPCOperatingSystemAlternativeNames: array[1..2] of shortstring =(
|
||||
'unix', 'win' // see GetDefaultSrcOSForTargetOS
|
||||
);
|
||||
FPCOperatingSystemAlternative2Names: array[1..1] of shortstring =(
|
||||
'bsd' // see GetDefaultSrcOS2ForTargetOS
|
||||
FPCOperatingSystemAlternative2Names: array[1..2] of shortstring =(
|
||||
'bsd', 'linux' // see GetDefaultSrcOS2ForTargetOS
|
||||
);
|
||||
FPCProcessorNames: array[1..6] of shortstring =(
|
||||
'i386', 'powerpc', 'm68k', 'x86_64', 'sparc', 'arm'
|
||||
@ -2567,6 +2567,7 @@ begin
|
||||
or (CompareText(TargetOS,'darwin')=0)
|
||||
or (CompareText(TargetOS,'solaris')=0)
|
||||
or (CompareText(TargetOS,'haiku')=0)
|
||||
or (CompareText(TargetOS,'android')=0)
|
||||
then
|
||||
Result:='unix'
|
||||
else
|
||||
@ -2585,7 +2586,9 @@ begin
|
||||
or (CompareText(TargetOS,'openbsd')=0)
|
||||
or (CompareText(TargetOS,'darwin')=0)
|
||||
then
|
||||
Result:='bsd';
|
||||
Result:='bsd'
|
||||
else if (CompareText(TargetOS,'android')=0) then
|
||||
Result:='linux';
|
||||
end;
|
||||
|
||||
function GetDefaultSrcCPUForTargetCPU(const TargetCPU: string): string;
|
||||
|
Loading…
Reference in New Issue
Block a user