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

3

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/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 but it has vanished in Xcode 5.

Any Ideas?

Radiophotograph answered 20/9, 2013 at 17:49 Comment(0)
T
24

Use the newer clang compiler instead like this: -

for CC: xcrun -find -sdk iphoneos clang

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

Tachyphylaxis answered 28/9, 2013 at 4:50 Comment(1)
You where right. The platform I was trying to build is now using clang by default and it appears to work. Thanks, BennyRadiophotograph
H
1

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.

Higbee answered 20/9, 2013 at 17:55 Comment(2)
It haven' t found any arm file =/Radiophotograph
And have you checked the release notes for this Xcode version? See Apple's Developer website, near the link where you downloaded Xcode from, so view release notes. Its possible tools may have been removed or replaced with something different.Higbee
U
1

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

Unpolitic answered 28/9, 2013 at 13:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.