Selaa lähdekoodia

* always use ppc<targetcpu> instead of ppcross<targetcpu> on darwin,
because due to the mach-o executable format which can contain
binaries for different architectures in a single file, different
names for native and cross compilers are not used on Mac OS X
(mantis #10067)

git-svn-id: trunk@10270 -

Jonas Maebe 17 vuotta sitten
vanhempi
commit
a497aec91d
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      compiler/utils/fpc.pp

+ 9 - 0
compiler/utils/fpc.pp

@@ -214,7 +214,16 @@ program fpc;
                            else
                              error('Illegal processor type "'+processorstr+'"');
 
+{$ifndef darwin}
                            ppcbin:='ppcross'+cpusuffix;
+{$else not darwin}
+                           { the mach-o format supports "fat" binaries whereby }
+                           { a single executable contains machine code for     }
+                           { several architectures -> it is counter-intuitive  }
+                           { and non-standard to use different binary names    }
+                           { for cross-compilers vs. native compilers          }
+                           ppcbin:='ppc'+cpusuffix;
+{$endif not darwin}
                          end;
                  end
               else if pos('-Xp',s)=1 then