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

后端 未结 3 424
醉酒成梦
醉酒成梦 2020-12-29 11:11

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/Develope

相关标签:
3条回答
  • 2020-12-29 11:34

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

    Compiler

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

    enter image description here

    0 讨论(0)
  • 2020-12-29 11:35

    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.

    0 讨论(0)
  • 2020-12-29 11:50

    Use the newer clang compiler instead like this: -

    for CC: xcrun -find -sdk iphoneos clang

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

    0 讨论(0)
提交回复
热议问题