Boost logo

Boost-Build :

Subject: Re: [Boost-build] [boost-build] pass build variant to SHELL rule in Jamroot?
From: Ryan Gonzalez (rymg19_at_[hidden])
Date: 2015-06-24 16:54:30


On June 24, 2015 3:29:06 PM CDT, Steve Lorimer <steve.lorimer_at_[hidden]> wrote:
>Is it possible to obtain the build variant in the Jamroot and pass it
>to a
>script invoked with the SHELL rule?
>
>If so, how can I pass it to the SHELL rule?
>
>local result = [ SHELL "script.sh" : "$(variant)" ] ;
>
>The above doesn't seem to work (the second argument to the rule doesn't
>seem to be passed to the script, regardless of what I put there)
>

I believe it should be:

[ SHELL "script.sh $(variant)" ]

Is accessing the variants like this even possible? I always thought variant info was filled in at a later stage.

>
>------------------------------------------------------------------------
>
>_______________________________________________
>Unsubscribe & other changes:
>http://lists.boost.org/mailman/listinfo.cgi/boost-build

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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