From: Nathan Binkert Date: Sat, 14 Jun 2008 00:34:22 +0000 (-0700) Subject: scons: fix program_info.cc generation X-Git-Tag: m5_2.0_beta6~123 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe4fd9f4146684a649131d09bbf85ecb96ef4ba7;p=gem5.git scons: fix program_info.cc generation --- diff --git a/src/SConscript b/src/SConscript index e360611a0..b9c83af9e 100644 --- a/src/SConscript +++ b/src/SConscript @@ -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 = [] diff --git a/src/python/generate.py b/src/python/generate.py index f4d923870..c32204bc9 100644 --- a/src/python/generate.py +++ b/src/python/generate.py @@ -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