[Scons-users] Deducing dependencies from command lines

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Tue Jun 6 06:32:15 EDT 2017


We have come across a situation where we want to wrap our C/C++ compiler in a script, so the command line has changed from

    g++ -o thing.o thing.cc

to

    wrapper.py g++ -o thing.o thing.cc

I'm in a bit of a quandary as I can't work out how to make wrapper.py a dependency of every c++ (and C and fortran...) compilation. Currently it ain't.

How'd I go about doing this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170606/7f37f5c7/attachment.html>


More information about the Scons-users mailing list