浏览代码

+ propagate FPC_ARMEL if FPC_OARM isn't defined

git-svn-id: trunk@11917 -
florian 17 年之前
父节点
当前提交
3f03b4fb80
共有 2 个文件被更改,包括 7 次插入0 次删除
  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