Please forgive me if this is already in the configuration docs, I've looked over them a couple times and can't find how to do this.

I'm building the boost libs using clang / libc++ for both OS X and iPhone, and I think I have everything working:

# For OS X:

using clang :
: xcrun clang -arch i386 -arch x86_64 -stdlib=libc++ -std=c++11
;

# For iOS:

using clang :
: xcrun clang -arch armv7 -stdlib=libc++ -std=c++11 -miphoneos-version-min=5.0 -isysroot /Applications/Developer/Xcode45-DP3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
;

Now I need to figure out how to allow two 'using clang' statements in user-config.jam that both use the same version of clang.  I tried something like:

using clang : : clang-ios
: # command details..
;

But this gives errors for using the same version of clang in two different setups.  Can someone help me figure out how to do this?


Side note:  My compiler commands are pretty raw above, since the current version of clang-darwin.jam seems unable to provide the necessary parameters.  Are there any plans to update it to support things like cross compiling and sdk versions? A quick google shows quite a few people are using boost in their iOS projects and Apple has made it clear they won't support gcc much longer..

Thanks,
Rich