mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-24 10:09:30 +02:00
+ register Darwin/AArch64 target
* pass "-arch arm64" to the linker for Darwin/AArch64 git-svn-id: trunk@29897 -
This commit is contained in:
parent
bee9c4185b
commit
60dd2d1dd5
@ -423,6 +423,10 @@ begin
|
|||||||
{ current versions of the linker require the sub-architecture type
|
{ current versions of the linker require the sub-architecture type
|
||||||
to be specified }
|
to be specified }
|
||||||
LinkRes.Add(lower(cputypestr[current_settings.cputype]));
|
LinkRes.Add(lower(cputypestr[current_settings.cputype]));
|
||||||
|
system_aarch64_darwin:
|
||||||
|
LinkRes.Add('arm64');
|
||||||
|
else
|
||||||
|
internalerror(2014121801);
|
||||||
end;
|
end;
|
||||||
if MacOSXVersionMin<>'' then
|
if MacOSXVersionMin<>'' then
|
||||||
begin
|
begin
|
||||||
@ -976,6 +980,11 @@ initialization
|
|||||||
RegisterExport(system_arm_darwin,texportlibdarwin);
|
RegisterExport(system_arm_darwin,texportlibdarwin);
|
||||||
RegisterTarget(system_arm_darwin_info);
|
RegisterTarget(system_arm_darwin_info);
|
||||||
{$endif arm}
|
{$endif arm}
|
||||||
|
{$ifdef aarch64}
|
||||||
|
RegisterImport(system_aarch64_darwin,timportlibdarwin);
|
||||||
|
RegisterExport(system_aarch64_darwin,texportlibdarwin);
|
||||||
|
RegisterTarget(system_aarch64_darwin_info);
|
||||||
|
{$endif aarch64}
|
||||||
|
|
||||||
RegisterRes(res_elf_info,TWinLikeResourceFile);
|
RegisterRes(res_elf_info,TWinLikeResourceFile);
|
||||||
RegisterRes(res_macho_info,TWinLikeResourceFile);
|
RegisterRes(res_macho_info,TWinLikeResourceFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user