1

As part of a research project at school, I'm exploring mobile specific energy optimizations and am building infrastructure to test these optimizations on a popular mobile platform. Given my background in LLVM, I have decided to setup the testing infrastructure around the iOS platform. I thought that since Xcode already uses LLVM under the hood, it should be easy to integrate a copy of LLVM compiled from source into the Xcode toolchain, but I haven't been able to find an option to accomplish it in Xcode yet. (I'm new to OSX and haven't worked with Xcode before)

Am I overlooking anything, or is such an integration not supported out of the box in Xcode?

2
  • You could probably redefine the build-rules for the project that is using the compiler to use a different one; but again, its quite a bit of effort. There is no support in XCode natively to change the compiler toolchains outside of the ones that are bundled with it. Commented Mar 7, 2015 at 14:37
  • You can always compile your code outside of Xcode in a shared library, and then have a dummy project that wrapped this library? Commented Mar 10, 2015 at 1:21

1 Answer 1

1

It's for obfuscater-llvm, but it should work for a "normal" llvm:

https://github.com/obfuscator-llvm/obfuscator/wiki/Installation#integration-into-xcode

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.