Boost logo

Boost-Build :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-25 12:39:31


AMDG

Emil Dotchevski wrote:
> The issue I need help with is this:
>
> On Windows, nvcc uses msvc (it can work with either 7.1 or 8.0), so
> before nvcc runs, the the msvc environment variables need to be set.
> Therefore, the proper init rule for nvcc.jam would be somewhat
> complicated, since it has to init the msvc compiler as well.
>
> I have no idea how to do this, so the init rule is empty for now, and
> I've hardcoded the paths to msvc and nvcc. This works for me, but if
> someone wants to help with the finishing touches, perhaps we can
> include this nvcc support in the boost build official release?
>

I think the way this should probably work is that msvc and nvcc should
be configured separately, and the msvc toolset should expose a way to
set its environment. Here's an idea of what this should look like.

# configuration
using msvc : 8.0 ;
using nvcc : : <backend-toolset>msvc-8.0 ;

# in nvcc

rule cu2cpp ( targets : sources : properties * )
{
    SETUP on $(targets) = [ toolset.get-environment-setup-command [
property.select backend-toolset : $(properties) ] ] ;
}

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