|
Boost-Build : |
From: Chris Drexler (CKolumbus_at_[hidden])
Date: 2003-09-07 07:20:17
Hi again,
On Sat, Sep 06, 2003 at 04:34:34PM +0200, Chris Drexler wrote:
> --- file intel.jam -----------------------
> import toolset : flags ;
> toolset.register intel ;
> toolset.inherit intel : msvc ;
> rule init ( )
> {
> }
> --------------------------------------------
> produces error messages when building simple targets.
I tracked the problem down to the 'link' and 'archive' actions
which uses RSP files with the msvc toolset but not with gcc.
Adding
generators.register-linker msvc.link "" : RSP : EXE : <toolset>intel ;
generators.register-linker msvc.link "" : RSP : SHARED_LIB IMPORT_LIB : <toolset>intel ;
generators.register-standard msvc.archive : RSP : STATIC_LIB : <toolset>intel ;
solves this problem but now the actions are evaluated in the 'msvc' namespace
and changed variables for the linker are not used.
My current test version of intel.jam is now
---------------------------------------------------------------------------
import generators ;
import toolset : flags ;
toolset.register intel ;
toolset.inherit intel : msvc ;
rule init ( )
{
.CC = icl ;
}
generators.register-linker msvc.link "" : RSP : EXE : <toolset>intel ;
generators.register-linker msvc.link "" : RSP : SHARED_LIB IMPORT_LIB : <toolset>intel ;
generators.register-standard msvc.archive : RSP : STATIC_LIB : <toolset>intel ;
---------------------------------------------------------------------------
having a simple Jamfile :
---------------------------------------------------------------------------
project hello ;
obj hello : hello.cpp : <toolset>msvc ;
obj h2 : h2.cpp : <toolset>intel ;
exe Hello : hello h2 ;
---------------------------------------------------------------------------
causes errors because 'msvc' and 'intel' are not regarded as link-compatible.
Any hints on how to solve this?
How should the 'vendor' variable from the 'msvc' toolset be set by the
'intel' toolset so that the link-compatibility is established (as suggested by
David Abrahams) ?
Is the problem with RSP generators a bug or how do I have to import the
msvc.link and msvc.archive generators so that local variable settings are
respected?
Chris
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