Boost logo

Boost-Build :

Subject: Re: [Boost-build] [run] parameter containing the build directory - segmentation fault
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2016-10-10 10:29:59


Le 10/10/16 à 16:20, Rene Rivera a écrit :
> On Mon, Oct 10, 2016 at 9:16 AM, Raffi Enficiaud
> <raffi.enficiaud_at_[hidden]
> <mailto:raffi.enficiaud_at_[hidden]>> wrote:
>
> Le 10/10/16 à 16:08, Steven Watanabe a écrit :
>
> AMDG
>
> On 10/10/2016 03:27 AM, Raffi Enficiaud wrote:
>
>
> ECHO [ $(to-return[0]).name ] ; # works
> ECHO [ $($(test-name-prefix)-0).name ] ; # does not work
> ECHO [ $(to-return[0]).build-dir ] ; # segmentation fault
> here
>
>
> Indexing is 1 based, not 0 based.
>
>
> Right :) however the segmentation fault persists:
>
>
> ECHO [ $(to-return[1]).name ] ; # works
> ECHO [ $(to-return[2]).name ] ; # works
> ECHO [ $(to-return[1]).build-dir ] ; # segmentation fault here
>
>
> For that case it usually means that the "build-dir" method doesn't exist
> on that instance.

This is also what I understood. However when the "[run ] " is executed,
the outputs are put to some folder, and I am interested in that folder.

Also, I go back to the 2nd question of my original post:

"""
2. is it possible to have those properties on the same declaration as
the target itself? Something like
run smoke-ts-static :
--log_sink=$(some-target-name-0).build-dir/smoke-ts-sink.xml
--log_format=XML : : : some-target-name-0
"""

 From what I understand, [run ] is creating a new target (I can have
"ECHO [ $(to-return[1]).name ]" ) and its name is "some-target-name-0".

Is is possible to extract some properties on the target at the location
where [run ] is called? (something like lasy evaluation of the parameters)?

Thanks,
Raffi


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