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

*爱你&永不变心* 提交于 2019-11-29 02:54:16

问题


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?


回答1:


Use the newer clang compiler instead like this: -

for CC: xcrun -find -sdk iphoneos clang

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




回答2:


It's usually best to use xcrun -find to dynamically locate Xcode command-line tools for you, rather than explicitly using a path, since the path to Xcode tools may change over time. See man xcrun for details on how to use it, including details on the -sdk iphoneos flag you may need to pass to look for iOS tools.

If xcrun cannot locate the tool, it may no longer be included as part of Xcode. See the release notes for Xcode 5 to check if something has been officially removed.




回答3:


https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_5_0.html

Compiler

**LLVM-GCC is not included in Xcode 5**



来源:https://stackoverflow.com/questions/18922885/how-to-find-arm-apple-darwin-llvm-gcc-4-2-compiler-on-xcode-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!