Boost logo

Boost-Build :

Subject: Re: [Boost-build] using same compiler version, with two different sets of command line options
From: Rich E (reakinator_at_[hidden])
Date: 2012-08-17 00:05:08


Aha.

That was the missing combination. I was close, but no cigar.

Thanks for the help,
Rich

On Thu, Aug 16, 2012 at 6:54 AM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> wrote:

> Le 16/08/12 08:30, Rich E a écrit :
>
> 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?
>>
>>
>> Hi,
>
> have you tried
>
> using clang : osx
>
> : xcrun clang -arch i386 -arch x86_64 -stdlib=libc++ -std=c++11
> ;
>
> using clang : ios
>
> : 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
> ;
>
> You are able to choose between these version using the toolsets clang-osx
> or clang-ios respectively.
>
> HTH,
> Vicente
> ______________________________**_________________
> Unsubscribe & other changes: http://lists.boost.org/**
> mailman/listinfo.cgi/boost-**build<http://lists.boost.org/mailman/listinfo.cgi/boost-build>
>



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk