Boost logo

Boost-Build :

Subject: [Boost-build] What flavour of regex does MATCH use? Or how do I remap paths?
From: Kuhl, Brian (brian.kuhl_at_[hidden])
Date: 2016-04-29 01:13:08


I'm trying to create a rule to assist remapping LD_LIBRARY_PATH from the build host to the VxWorks target system.
For example:
/opt/vx7/workspace/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks
..might become ..
bkuhlfedora:/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks

But I'm not getting anything from the MATCH rule?

rule native-VXWORKS ( path )
{
    local result = $(path) ;
    if [ regex.match "(^/?(.*))" : $(path) ] # absolute path.
    {
        result = [ sequence.join [ os.environ LAYER_SRC_PATH ] / [ MATCH "(?=bin\.v2).*" : $(path) ] ] ;
    }
    return $(result) ;
}

Brian Kuhl
Wind River



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