Browse Source

Add '-b pei_aarch64' option for aarch64-win64 system

Pierre Muller 2 years ago
parent
commit
c1e2f557f1
1 changed files with 10 additions and 6 deletions
  1. 10 6
      compiler/systems/t_win.pas

+ 10 - 6
compiler/systems/t_win.pas

@@ -1145,14 +1145,18 @@ implementation
       begin
       begin
         with Info do
         with Info do
          begin
          begin
+{$ifdef aarch64}
+           targetopts:='-b pei-aarch64-little';
+{$endif aarch64}
 {$ifdef x86_64}
 {$ifdef x86_64}
            targetopts:='-b pei-x86-64';
            targetopts:='-b pei-x86-64';
-{$else x86_64}
-           if target_info.system=system_arm_wince then
-             targetopts:='-m arm_wince_pe'
-           else
-             targetopts:='-b pei-i386 -m i386pe';
-{$endif not x86_64}
+{$endif x86_64}
+{$ifdef i386}
+           targetopts:='-b pei-i386 -m i386pe';
+{$endif i386}
+{$ifdef arm}
+           targetopts:='-m arm_wince_pe';
+{$endif arm}
            ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY  $IMAGEBASE $RELOC -o $EXE $RES';
            ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY  $IMAGEBASE $RELOC -o $EXE $RES';
            DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY  $IMAGEBASE $RELOC -o $EXE $RES';
            DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY  $IMAGEBASE $RELOC -o $EXE $RES';
            { ExeCmd[2]:='dlltool --as $ASBIN --dllname $EXE --output-exp exp.$$$ $RELOC $DEF';
            { ExeCmd[2]:='dlltool --as $ASBIN --dllname $EXE --output-exp exp.$$$ $RELOC $DEF';