瀏覽代碼

* Set default CPU type to cpu_pic32mx and FPU type to fpu_soft when compiling for mipsel-embedded, patch from Michael Ring.

git-svn-id: trunk@28692 -
sergei 11 年之前
父節點
當前提交
ba324b1bf0
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      compiler/options.pas

+ 10 - 0
compiler/options.pas

@@ -3493,6 +3493,16 @@ if (target_info.abi = abi_eabihf) then
         if not option.FPUSetExplicitly then
         if not option.FPUSetExplicitly then
           init_settings.fputype:=fpu_mips2;
           init_settings.fputype:=fpu_mips2;
       end;
       end;
+    system_mipsel_embedded:
+      begin
+        { set default cpu type to PIC32MX and softfloat for MIPSEL-EMBEDDED target unless specified otherwise }
+        if not option.CPUSetExplicitly then
+          init_settings.cputype:=cpu_pic32mx;
+        if not option.OptCPUSetExplicitly then
+          init_settings.optimizecputype:=cpu_pic32mx;
+        if not option.FPUSetExplicitly then
+          init_settings.fputype:=fpu_soft;
+      end;
   end;
   end;
 {$endif mipsel}
 {$endif mipsel}