Boost logo

Boost-Build :

Subject: Re: [Boost-build] "run" rule with same binary but different parameters
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-10-09 20:25:22


On 10/9/2016 7:10 PM, Raffi Enficiaud wrote:
> Hi all,
>
> I am trying to run a binary with different command line parameters, so
> right now I have this:
>
> [ run smoke-ts/basic-smoke-test.cpp
> ../build//boost_unit_test_framework/<link>static :
> --log_sink=smoke-ts-sink.xml --log_format=XML ]
> [ run smoke-ts/basic-smoke-test.cpp
> ../build//boost_unit_test_framework/<link>static :
> --log_sink=smoke-ts-sink2.xml --log_format=HRF : : : bt-st-b2 ]
>
> This works ok, but requires the recompilation of the same sources. If I
> omit the ": : : bt-st-b2", b2 is confused as apparently it does not
> support the same target name.
>
> Is there a way to do that without being forced to recompile?

There is an 'obj' target, so why not do a single compile to the obj
target and then have separate run targets using that obj ?


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