From 184cf4db5b1354552de3960fd3becbeb7ef49767 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 29 Jan 2010 20:29:17 -0800 Subject: [PATCH] scons: ignore blank lines in .slicc files --- src/mem/protocol/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/protocol/SConscript b/src/mem/protocol/SConscript index 453b37119..8d9ebf3b1 100644 --- a/src/mem/protocol/SConscript +++ b/src/mem/protocol/SConscript @@ -57,7 +57,7 @@ for root,dirs,files in os.walk(slicc_dir.srcnode().abspath): def slicc_scanner(node, env, path): contents = node.get_contents() - files = [ line.strip() for line in contents.splitlines() ] + files = [ line.strip() for line in contents.splitlines() if line ] return files env.Append(SCANNERS=Scanner(function=slicc_scanner,skeys=['.slicc'])) -- 2.30.2