Browse Source

+ propagate FPC_ARMEL if FPC_OARM isn't defined

git-svn-id: trunk@11917 -
florian 17 years ago
parent
commit
3f03b4fb80
2 changed files with 7 additions and 0 deletions
  1. 4 0
      compiler/fpcdefs.inc
  2. 3 0
      compiler/pp.pas

+ 4 - 0
compiler/fpcdefs.inc

@@ -107,6 +107,10 @@
   {$define cpufpemu}
   {$define cpuneedsdiv32helper}
   {$define cputargethasfixedstack}
+  { inherit FPC_ARMEL? }
+  {$if defined(CPUARMEL) and not(defined(FPC_OARM))}
+    {$define FPC_ARMEL}
+  {$endif}
 {$endif arm}
 
 {$ifdef m68k}

+ 3 - 0
compiler/pp.pas

@@ -39,6 +39,9 @@ program pp;
                       MMX instructions
   EXTERN_MSG          Don't compile the msgfiles in the compiler, always
                       use external messagefiles, default for TP
+  FPC_ARMEL           create an arm eabi compiler
+  FPC_OARM            create an arm oabi compiler, only needed when the host
+                      compiler is ARMEL
   -----------------------------------------------------------------
   cpuflags            The target processor has status flags (on by default)
   cpufpemu            The target compiler will also support emitting software