summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-06-12 06:19:13 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2006-06-12 06:19:13 -0400
commitbabb22eea4be07cbc725eea129c6a6557fd56af2 (patch)
tree69c572d75dacb6b739f98b8eed30258e2a3be27d /src
parentdf4b4f001e4db902297acf3b75480e4886e4e882 (diff)
downloadgem5-babb22eea4be07cbc725eea129c6a6557fd56af2.tar.xz
Fix python binary name in arch/SConscript.
Also delete no-longer-needed SPARC test.py files (should have gone with my last chnageset where LiveProcess became ISA-independent). src/arch/SConscript: Mistakenly committed hard-coded python binary name. Should use same python to run isa_parser that was used to run scons. --HG-- extra : convert_revision : a3acd5496f3b930d57bb59ae164b8a4a8065bbf8
Diffstat (limited to 'src')
-rw-r--r--src/arch/SConscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/SConscript b/src/arch/SConscript
index c90694a68..ff460dafd 100644
--- a/src/arch/SConscript
+++ b/src/arch/SConscript
@@ -28,7 +28,7 @@
#
# Authors: Steve Reinhardt
-import os.path
+import os.path, sys
# Import build environment variable from SConstruct.
Import('env')
@@ -134,7 +134,8 @@ def isa_desc_emitter(target, source, env):
return (isa_desc_gen_files, [isa_parser, cpu_models_file] + source)
# Pieces are in place, so create the builder.
-isa_desc_builder = Builder(action='python2.4 $SOURCES $TARGET.dir $CPU_MODELS',
+python = sys.executable # use same Python binary used to run scons
+isa_desc_builder = Builder(action=python + ' $SOURCES $TARGET.dir $CPU_MODELS',
emitter = isa_desc_emitter)
env.Append(BUILDERS = { 'ISADesc' : isa_desc_builder })