scons: fix program_info.cc generation
authorNathan Binkert <nate@binkert.org>
Sat, 14 Jun 2008 00:34:22 +0000 (17:34 -0700)
committerNathan Binkert <nate@binkert.org>
Sat, 14 Jun 2008 00:34:22 +0000 (17:34 -0700)
src/SConscript
src/python/generate.py

index e360611a07a329ea15b67311839a5b6e299f91be..b9c83af9ed537c7cd4821835149a4714937499a4 100644 (file)
@@ -334,7 +334,8 @@ Source('base/traceflags.cc')
 
 # Generate program_info.cc
 env.Command('base/program_info.cc',
-            Value(str(SCons.Node.FS.default_fs.SConstruct_dir)), generate.programInfo)
+            Value(str(SCons.Node.FS.default_fs.SConstruct_dir)),
+            generate.programInfo)
 
 # Build the zip file
 py_compiled = []
index f4d923870ed12d06db08f71b202efd6f659c776e..c32204bc97b878c592c5ee916a0022299655d705 100644 (file)
@@ -535,7 +535,7 @@ extern const Flags *compoundFlags[];
             pi_stats.close()
 
         target = str(target[0])
-        scons_dir = eval(str(source[0]))
+        scons_dir = str(source[0])
         try:
             import mercurial.demandimport, mercurial.hg, mercurial.ui
             import mercurial.util, mercurial.node