Browse Source

* WinCE compilation fixed

git-svn-id: trunk@6938 -
florian 18 years ago
parent
commit
922b387980
1 changed files with 11 additions and 5 deletions
  1. 11 5
      compiler/options.pas

+ 11 - 5
compiler/options.pas

@@ -2158,10 +2158,6 @@ begin
       def_system_macro('FPC_ABI_AIX');
       def_system_macro('FPC_ABI_AIX');
   end;
   end;
 
 
-  { CPU Define }
-  def_system_macro('CPU'+Cputypestr[init_settings.cputype]);
-
-  def_system_macro('FPU'+fputypestr[init_settings.fputype]);
 { Check file to compile }
 { Check file to compile }
   if param_file='' then
   if param_file='' then
    begin
    begin
@@ -2301,7 +2297,17 @@ begin
     or (init_settings.fputype=fpu_soft)
     or (init_settings.fputype=fpu_soft)
 {$endif arm}
 {$endif arm}
   then
   then
-    include(init_settings.moduleswitches,cs_fp_emulation);
+    begin
+      include(init_settings.moduleswitches,cs_fp_emulation);
+      { cs_fp_emulation and fpu_soft are equal on arm }
+      init_settings.fputype:=fpu_soft;
+    end;
+
+
+  { now we can defined cpu and cpu type }
+  def_system_macro('CPU'+Cputypestr[init_settings.cputype]);
+
+  def_system_macro('FPU'+fputypestr[init_settings.fputype]);
 
 
 {$ifdef ARM}
 {$ifdef ARM}
   { define FPC_DOUBLE_HILO_SWAPPED if needed to properly handle doubles in RTL }
   { define FPC_DOUBLE_HILO_SWAPPED if needed to properly handle doubles in RTL }