Je viens de pousser un commit pour permettre la compilation pour ppc (sur le 10.6, il n'y a pas de support de ppc64), ainsi qu'un exemple (powerpc-apple-darwin10)
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-gcc -o helloworld helloworld.c
$ file helloworld
helloworld: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-g++ -o hellocpp hellocpp.cpp
$ file hellocpp
hellocpp: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-clang -o helloworld helloworld.c
$ file helloworld
helloworld: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-clang++ -o hellocpp hellocpp.cpp
$ file hellocpp
hellocpp: Mach-O executable ppc
Cela devrait fonctionner (je n'ai pas de mac ppc pour tester)
[^] # Re: bravo
Posté par diorcety . En réponse au journal OSX, Windows, GNU/Linux Toolchains. Évalué à 10.
Je viens de pousser un commit pour permettre la compilation pour ppc (sur le 10.6, il n'y a pas de support de ppc64), ainsi qu'un exemple (powerpc-apple-darwin10)
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-gcc -o helloworld helloworld.c
$ file helloworld
helloworld: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-g++ -o hellocpp hellocpp.cpp
$ file hellocpp
hellocpp: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-clang -o helloworld helloworld.c
$ file helloworld
helloworld: Mach-O executable ppc
$ ~/x-tools/powerpc-apple-darwin10/bin/powerpc-apple-darwin10-clang++ -o hellocpp hellocpp.cpp
$ file hellocpp
hellocpp: Mach-O executable ppc
Cela devrait fonctionner (je n'ai pas de mac ppc pour tester)