How to find arm-apple-darwin#-llvm-gcc-4.2 compiler on Xcode 5?

marcelosalloum picture marcelosalloum · Sep 20, 2013 · Viewed 11.7k times · Source

I am tying a cross compilation and for that I need to find where Xcode have placed the arm-gcc compiller.

It used to be in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 but it has vanished in Xcode 5.

Any Ideas?

Answer

Benny Khoo picture Benny Khoo · Sep 28, 2013

Use the newer clang compiler instead like this: -

for CC: xcrun -find -sdk iphoneos clang

for CXX: xcrun -find -sdk iphoneos clang++