Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-04-14 23:24:02


In trying to finish the V2 loading integration I've run into a snag which
seems to be a bug with the LOCALIZE option of IMPORT, but I'm not sure.

Given this file (ran with "bjam-3.1.1 -f localize-test.jam")...

~~~~~~~~~~~~localize-test.jam
module scope-1
{
rule test-1 ( outside-scope )
{
IMPORT scope-2 : [ RULENAMES scope-2 ] :
$(outside-scope) : [ RULENAMES scope-2 ] : LOCALIZE ;
EXPORT $(outside-scope) : [ RULENAMES scope-2 ] ;
}
}

module scope-2
{
rule test-2 ( )
{
ECHO *** scope-2 ;
}
}

scope-1.test-1 scope-3 ;

ECHO >>> scope-1 -- [ RULENAMES scope-1 ] ;
ECHO >>> scope-2 -- [ RULENAMES scope-2 ] ;
ECHO >>> scope-3 -- [ RULENAMES scope-3 ] ;

scope-2.test-2 ;
module scope-3 { test-2 ; }
scope-3.test-2 ;
~~~~~~~~~~~~localize-test.jam

I was expecting this output...

~~~~~~~~~~~~
>>> scope-1 -- test-1
>>> scope-2 -- test-2
>>> scope-3 -- test-2
*** scope-2
*** scope-2
*** scope-2
don't know how to make all
...found 1 target...
...can't find 1 target...
~~~~~~~~~~~~

Instead I get this...

~~~~~~~~~~~~
>>> scope-1 -- test-1
>>> scope-2 -- test-2
>>> scope-3 -- test-2
*** scope-2
*** scope-2
localize-test.jam:27: in module scope
warning: unknown rule scope-3.test-2
don't know how to make all
...found 1 target...
...can't find 1 target...
~~~~~~~~~~~~

Is it a bug, or am I misunderstanding the behaviour?

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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