|
|
@@ -73,11 +73,14 @@ Const
|
|
|
'avr': Result := 'avr';
|
|
|
'i386': Result := '386';
|
|
|
'i8086': Result := '8086';
|
|
|
- 'jvm': Result := 'jvm';
|
|
|
+ 'jvm': Result := 'jvm';
|
|
|
'loongarch64': Result:='loongarch64';
|
|
|
'm68k': Result := '68k';
|
|
|
'mips': Result := 'mips';
|
|
|
'mipsel': Result := 'mipsel';
|
|
|
+ 'mipseb': Result := 'mipseb';
|
|
|
+ 'mips64': Result := 'mips64';
|
|
|
+ 'mips64el': Result := 'mips64el';
|
|
|
'powerpc': Result := 'ppc';
|
|
|
'powerpc64': Result := 'ppc64';
|
|
|
'riscv32': Result := 'rv32';
|
|
|
@@ -136,9 +139,23 @@ Const
|
|
|
ppcbin:='ppcmipsel';
|
|
|
processorname:='mipsel';
|
|
|
{$else : not mipsel}
|
|
|
- {$ifdef mips}
|
|
|
- ppcbin:='ppcmips';
|
|
|
- processorname:='mips';
|
|
|
+ {$ifdef mipseb}
|
|
|
+ ppcbin:='ppcmipseb';
|
|
|
+ processorname:='mipseb';
|
|
|
+ {$else : not mipseb}
|
|
|
+ {$ifdef mips}
|
|
|
+ ppcbin:='ppcmips';
|
|
|
+ processorname:='mips';
|
|
|
+ {$endif mips}
|
|
|
+ {$endif not mipseb}
|
|
|
+ {$endif not mipsel}
|
|
|
+ {$ifdef mips64el}
|
|
|
+ ppcbin:='ppcmips64el';
|
|
|
+ processorname:='mips64el';
|
|
|
+ {$else : not mips64el}
|
|
|
+ {$ifdef mips64}
|
|
|
+ ppcbin:='ppcmips64';
|
|
|
+ processorname:='mips64';
|
|
|
{$endif mips}
|
|
|
{$endif not mipsel}
|
|
|
{$ifdef riscv32}
|
|
|
@@ -315,7 +332,7 @@ begin
|
|
|
end;
|
|
|
if configpath='' then
|
|
|
begin
|
|
|
- {
|
|
|
+ {
|
|
|
We need to search relative to compiler binary, not relative to FPC binary.
|
|
|
Beware of symlinks !
|
|
|
}
|
|
|
@@ -325,7 +342,7 @@ begin
|
|
|
if copy(sl,1,1)<>'/' then
|
|
|
hs:=ExpandFileName(ExtractFilePath(hs)+sl)
|
|
|
else
|
|
|
- hs:=sl;
|
|
|
+ hs:=sl;
|
|
|
end;
|
|
|
ExePath:=ExtractFilePath(hs);
|
|
|
configpath:=ExpandFileName(ExePath+'../etc/');
|