slicc: tweak file enumeration for scons

Right now .cc and .hh files are handled separately, but then
they're just munged together at the end by scons, so it
doesn't buy us anything.  Might as well munge from the start
since we'll eventually be adding generated Python files
to the list too.
This commit is contained in:
Steve Reinhardt
2009-11-05 11:11:06 -08:00
parent 058ccfc7fe
commit 9098010e3f
9 changed files with 31 additions and 42 deletions

View File

@@ -69,9 +69,7 @@ def slicc_emitter(target, source, env):
for name in slicc.load(files, verbose=True):
print " %s" % name
hh,cc = slicc.files()
target.extend(sorted(hh))
target.extend(sorted(cc))
target.extend(sorted(slicc.files()))
return target, source
def slicc_action(target, source, env):