summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-11 10:38:46 -0700
committerNathan Binkert <nate@binkert.org>2009-05-11 10:38:46 -0700
commit7311fd7182bfe65206c5655d058a72dd717cbe42 (patch)
treec6f1e028f8e20f5025476ccdb901e41d3f9143c5 /SConstruct
parente40b8e34c81349e12a373931ab01ec78f657d80d (diff)
downloadgem5-7311fd7182bfe65206c5655d058a72dd717cbe42.tar.xz
ruby: Migrate all of ruby and slicc to SCons.
Add the PROTOCOL sticky option sets the coherence protocol that slicc will parse and therefore ruby will use. This whole process was made difficult by the fact that the set of files that are output by slicc are not easily known ahead of time. The easiest thing wound up being to write a parser for slicc that would tell me. Incidentally this means we now have a slicc grammar written in python.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7a0bf2794..5cbb50dce 100644
--- a/SConstruct
+++ b/SConstruct
@@ -410,6 +410,10 @@ else:
print ' Please fix SConstruct and src/SConscript and try again.'
Exit(1)
+# Set up common yacc/bison flags (needed for Ruby)
+main['YACCFLAGS'] = '-d'
+main['YACCHXXFILESUFFIX'] = '.hh'
+
# Do this after we save setting back, or else we'll tack on an
# extra 'qdo' every time we run scons.
if main['BATCH']: