Boost logo

Boost-Build :

Subject: Re: [Boost-build] "run" rule with same binary but different parameters
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-09 20:26:32


On 10/09/2016 05:10 PM, Raffi Enficiaud wrote:
> 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?

Build an exe target and pass it to run.
(I think there's a bug that will cause
this to fail with preserve-test-targets=off,

In Christ,
Steven Watanabe

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