[Scons-users] Get list of executed command lines
Gary Oberbrunner
garyo at oberbrunner.com
Mon Dec 24 22:43:14 EST 2012
Hi Remko; I don't think it's possible to do that, at least it's not easy.
On Mon, Dec 24, 2012 at 4:16 AM, Remko Tronçon <remko at el-tramo.be> wrote:
> Hi all,
>
> Is it possible to get a list of all (actual, or theoretical) executed
> command lines out of a SCons build? After I did a SCons build, I would
> like to have all C/C++ compiler execution lines for all my source
> files (the other command lines don't interest me), so
> gcc -o foo.o -c foo.c
> gcc -o bar.o -c bar.c
> ...
> (in one form or another).
>
> The naive way would be to do dump SCons' output to a file, and write a
> script to parse the output and try to detect compiler invocations, but
> it would be a lot easier if I could do this in SCons itself (e.g. by
> introspection, or by overriding some execution function to also log
> commands to a variable).
>
> Ideally, I would have the list of all compilation lines, including
> those that aren't executed (because the sources didn't change), but I
> can live with just the actual compilation lines as well, and doing a
> clean build everytime.
>
> thanks!
> Remko
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121224/2f0c1b7f/attachment.html>
More information about the Scons-users
mailing list