浏览代码

use --32/--64 for Darwin GNU assembler calls

git-svn-id: trunk@36870 -
pierre 8 年之前
父节点
当前提交
6a416a6aa1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/x86/agx86att.pas

+ 2 - 2
compiler/x86/agx86att.pas

@@ -446,7 +446,7 @@ interface
             id     : as_darwin;
             id     : as_darwin;
             idtxt  : 'AS-DARWIN';
             idtxt  : 'AS-DARWIN';
             asmbin : 'as';
             asmbin : 'as';
-            asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch x86_64';
+            asmcmd : '--64 -o $OBJ $EXTRAOPT $ASM';
             supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
             supported_targets : [system_x86_64_darwin,system_x86_64_iphonesim];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf];
             labelprefix : 'L';
             labelprefix : 'L';
@@ -520,7 +520,7 @@ interface
             id     : as_darwin;
             id     : as_darwin;
             idtxt  : 'AS-DARWIN';
             idtxt  : 'AS-DARWIN';
             asmbin : 'as';
             asmbin : 'as';
-            asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch i386';
+            asmcmd : '--32 -o $OBJ $EXTRAOPT $ASM';
             supported_targets : [system_i386_darwin,system_i386_iphonesim];
             supported_targets : [system_i386_darwin,system_i386_iphonesim];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
             flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
             labelprefix : 'L';
             labelprefix : 'L';