[Scons-users] Code generation in SCons

Mats Wichmann mats at wichmann.us
Thu Apr 23 09:08:37 EDT 2020


On 4/23/20 2:21 AM, Erik Kazandjian wrote:
> Hi,
> 
> I've created a builder that generates C code nad header files from a
> yang file. The problem I'm having is the first I build these c and h
> files are not there so scons rebuilds them , but than the second time
> when I build scons decides that the C and header files have changes and
> so it rebuilds again generating the exact same c and h file, do only the
> third time it builds it decide bot to rebuild anything. Is there a way
> in scons to get around this or do I have to write a custom decider myself ?

Since there's existing practice (lex, swig and yacc included with SCons
itself as well as external efforts), there should be a way to get it to
work. Perhaps if you share what you're doing?  There is a bit of
plumbing to get hooked up.






More information about the Scons-users mailing list