Browse Source

+ add "-arch ppc" to the assembler call to fix assembling when
running on x86

git-svn-id: trunk@2590 -

Jonas Maebe 19 years ago
parent
commit
21e604c1ea
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/powerpc/agppcgas.pas

+ 3 - 3
compiler/powerpc/agppcgas.pas

@@ -83,13 +83,13 @@ unit agppcgas;
           );
 
 
-       as_ppc_gas_darwin_info : tasminfo =
+       as_ppc_gas_darwin_powerpc_info : tasminfo =
           (
             id     : as_darwin;
 
             idtxt  : 'AS-Darwin';
             asmbin : 'as';
-            asmcmd : '-o $OBJ $ASM';
+            asmcmd : '-o $OBJ $ASM -arch ppc';
             supported_target : system_any;
             flags : [af_allowdirect,af_needar,af_smartlink_sections,af_supports_dwarf];
             labelprefix : 'L';
@@ -381,5 +381,5 @@ unit agppcgas;
 
 begin
   RegisterAssembler(as_ppc_gas_info,TPPCGNUAssembler);
-  RegisterAssembler(as_ppc_gas_darwin_info,TPPCGNUAssembler);
+  RegisterAssembler(as_ppc_gas_darwin_powerpc_info,TPPCGNUAssembler);
 end.