Boost logo

Boost-Build :

Subject: Re: [Boost-build] cross compiling
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-15 14:04:53


AMDG

On 10/15/2012 10:53 AM, Larry E. Ramey wrote:
> Do I need to set this before I run boostrap?

No. bootstrap has nothing to do with this.

> Because when I try to run b2.exe from a msvc (arm) command prompt, it decides that I don't have a win32 cpu-arch (which is correct) but then makes the leap that I clearly must be wanting to use g++ to compile.
>

Try

toolset=msvc?

That should override any automatic toolset detection.

You can also put
using msvc ;
in project-config.jam or user-config.jam

>
> On 10/15/2012 08:55 AM, Larry E. Ramey wrote:
>> I'd like to compile for windows 8 on arm from my windows 7 machine. Can someone point me to the places in the jamfiles I'm going to need to change to clue boost in that it ought to compile arm for win8? I've got all the addons to MSVC that you need, we compile windows 8 arm and apollo all the time here. I just need to get boost clued in that it should change a few flags.
>>
>
> If you just need to add options, then you can
> use cxxflags=... and linkflags=... on the command
> line or use
>
> using msvc : /version/ : /command/ : <cxxflags>... <linkflags>... ;
>
> when initializing the toolset.
>
> If it requires more substantial changes,
> the logic controlling it is in tools/build/v2/tools/msvc.jam
>
> You may also need to pass architecture=arm on the
> command line.
>

In Christ,
Steven Watanabe


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