Browse Source

* propagate -Cfsoft to emulation settings on arm

git-svn-id: trunk@6703 -
florian 18 năm trước cách đây
mục cha
commit
cb746ec830
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      compiler/options.pas

+ 6 - 2
compiler/options.pas

@@ -2281,8 +2281,12 @@ begin
     exclude(init_settings.globalswitches,cs_link_strip);
 
   { force fpu emulation on arm/wince, arm/gba and arm/nds}
-  if target_info.system in [system_arm_wince,system_arm_gba,system_m68k_amiga,
-    system_m68k_linux,system_arm_nds] then
+  if (target_info.system in [system_arm_wince,system_arm_gba,system_m68k_amiga,
+    system_m68k_linux,system_arm_nds])
+{$ifdef arm}
+    or (init_settings.fputype=fpu_soft)
+{$endif arm}
+  then
     include(init_settings.moduleswitches,cs_fp_emulation);
 
 {$ifdef ARM}