summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-14 23:24:45 -0700
committerNathan Binkert <nate@binkert.org>2010-06-14 23:24:45 -0700
commit70497d6a18aedb41361a1726a01ced4abd5daabf (patch)
treebc497054cd34c0f66c6052fe283f3c379ae15ac4 /SConstruct
parentdd133c7b24aba128546d24e6042b0e0d46673aaf (diff)
downloadgem5-70497d6a18aedb41361a1726a01ced4abd5daabf.tar.xz
build: grab the right library if we're using a debug version of python
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 275a3c5d5..d210fc5b9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -515,7 +515,8 @@ from distutils import sysconfig
py_getvar = sysconfig.get_config_var
-py_version = 'python' + py_getvar('VERSION')
+py_debug = getattr(sys, 'pydebug', False)
+py_version = 'python' + py_getvar('VERSION') + (py_debug and "_d" or "")
py_general_include = sysconfig.get_python_inc()
py_platform_include = sysconfig.get_python_inc(plat_specific=True)