[cfe-dev] targeting iOS

Eli Friedman eli.friedman at gmail.com
Wed Dec 12 18:24:23 PST 2012


On Wed, Dec 12, 2012 at 2:26 PM, Cosimo Caproni <cosimocaproni at me.com> wrote:
> I was wondering how clang can target the iOS platform. My instinctive approach would have been to use -ccc-host-triple arm-apple-darwin10 , but I recently discovered that the arm-apple-ios triple is used by the apple "official" compiler.
> What is the recommended option?

Assuming you're on OS X, the supported way to invoke clang targeting
iOS is something like "clang -arch armv7 -mios-version-min=5.0
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/"
.

-Eli



More information about the cfe-dev mailing list