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 cpufpemu}
   {$define cpuneedsdiv32helper}
   {$define cpuneedsdiv32helper}
   {$define cputargethasfixedstack}
   {$define cputargethasfixedstack}
+  { inherit FPC_ARMEL? }
+  {$if defined(CPUARMEL) and not(defined(FPC_OARM))}
+    {$define FPC_ARMEL}
+  {$endif}
 {$endif arm}
 {$endif arm}
 
 
 {$ifdef m68k}
 {$ifdef m68k}

+ 3 - 0
compiler/pp.pas

@@ -39,6 +39,9 @@ program pp;
                       MMX instructions
                       MMX instructions
   EXTERN_MSG          Don't compile the msgfiles in the compiler, always
   EXTERN_MSG          Don't compile the msgfiles in the compiler, always
                       use external messagefiles, default for TP
                       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)
   cpuflags            The target processor has status flags (on by default)
   cpufpemu            The target compiler will also support emitting software
   cpufpemu            The target compiler will also support emitting software