+ register Darwin/AArch64 target

* pass "-arch arm64" to the linker for Darwin/AArch64

git-svn-id: trunk@29897 -
This commit is contained in:
Jonas Maebe 2015-02-23 22:51:44 +00:00
parent bee9c4185b
commit 60dd2d1dd5

View File

@ -423,6 +423,10 @@ begin
{ current versions of the linker require the sub-architecture type
to be specified }
LinkRes.Add(lower(cputypestr[current_settings.cputype]));
system_aarch64_darwin:
LinkRes.Add('arm64');
else
internalerror(2014121801);
end;
if MacOSXVersionMin<>'' then
begin
@ -976,6 +980,11 @@ initialization
RegisterExport(system_arm_darwin,texportlibdarwin);
RegisterTarget(system_arm_darwin_info);
{$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_macho_info,TWinLikeResourceFile);