Explorar o código

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

git-svn-id: trunk@29897 -

Jonas Maebe %!s(int64=10) %!d(string=hai) anos
pai
achega
60dd2d1dd5
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      compiler/systems/t_bsd.pas

+ 9 - 0
compiler/systems/t_bsd.pas

@@ -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);