如何在 Xcode 5 上找到 arm-apple-darwin#-llvm-gcc-4.2 编译器? [英] How to find arm-apple-darwin#-llvm-gcc-4.2 compiler on Xcode 5?
问题描述
我正在绑定交叉编译,为此我需要找到 Xcode 放置 arm-gcc 编译器的位置.
I am tying a cross compilation and for that I need to find where Xcode have placed the arm-gcc compiller.
它曾经在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 但在 Xcode 5 中消失了.
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.
有什么想法吗?
推荐答案
改用较新的 clang 编译器,如下所示:-
Use the newer clang compiler instead like this: -
对于抄送:xcrun -find -sdk iphoneos clang
for CC: xcrun -find -sdk iphoneos clang
对于 CXX:xcrun -find -sdk iphoneos clang++
for CXX: xcrun -find -sdk iphoneos clang++
这篇关于如何在 Xcode 5 上找到 arm-apple-darwin#-llvm-gcc-4.2 编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!