浏览代码

assemble.pas, texternalcompiler.makecmdline:
* pass the correct architecture to the assembler (later we might switch to a $ARCH approach...)

git-svn-id: trunk@22737 -

svenbarth 13 年之前
父节点
当前提交
63f4e44fd5
共有 1 个文件被更改,包括 9 次插入4 次删除
  1. 9 4
      compiler/assemble.pas

+ 9 - 4
compiler/assemble.pas

@@ -580,10 +580,15 @@ Implementation
       begin
         result:=target_asm.asmcmd;
 {$ifdef m68k}
-        if current_settings.cputype = cpu_MC68020 then
-          result:='-m68020 '+result
-        else
-          result:='-m68000 '+result;
+        { TODO: use a better approach for this }
+        case current_settings.cputype of
+          cpu_MC68000:
+            result:='-march=68000 '+result;
+          cpu_MC68020:
+            result:='-march=68020 '+result;
+          cpu_Coldfire:
+            result:='-march=cfv4e '+result;
+        end;
 {$endif}
 {$ifdef arm}
         if (target_info.system=system_arm_darwin) then