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 "" : "$(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 " $(variant)" ]

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

>Unsubscribe & other changes:

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

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at