summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2010-01-29 20:29:17 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2010-01-29 20:29:17 -0800
commit184cf4db5b1354552de3960fd3becbeb7ef49767 (patch)
tree806d9c6a8686f75efcd9ac1095f58ca70cc9ae2c
parentc6f1d959be74de55b0c90f3c961314791342d03e (diff)
downloadgem5-184cf4db5b1354552de3960fd3becbeb7ef49767.tar.xz
scons: ignore blank lines in .slicc files
-rw-r--r--src/mem/protocol/SConscript2
1 files changed, 1 insertions, 1 deletions
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']))