Boost logo

Boost-Build :

Subject: Re: [Boost-build] prototyping alternative Boost.Build syntax
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-29 16:10:37


On 10/29/2016 01:45 PM, Stefan Seefeld wrote:
> Cool, that worked ! Can you outline what the four calls do ?
> bjam_interface.define_action("gcc.compile", "g++ -c -o $(<) $(>)",
> [], 0)
>"gcc.compile", "hello.o", "hello.cpp")
>"UPDATE_NOW", "hello.o")
> from my guess:
> * the first line defines an action


> * the second line defines a rule by which "hello.o" is made from
> "hello.cpp" using that action


> * the third line requests "hello.o" to be remade ("now" - is that a
> blocking call ?)


> * not sure about the fourth line

It clears the update list causing the default
update phase to do nothing.

There's actually one more component that's missing:"DEPENDS", "hello.o", "hello.cpp");

gcc.compile doesn't automatically set up this
dependency. (The first time you build it will
update because hello.o is missing. However,
without DEPENDS, touching hello.cpp won't cause
hello.o to update.)

In Christ,
Steven Watanabe

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