projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd133c7
)
build: grab the right library if we're using a debug version of python
author
Nathan Binkert
<nate@binkert.org>
Tue, 15 Jun 2010 06:24:45 +0000
(23:24 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Tue, 15 Jun 2010 06:24:45 +0000
(23:24 -0700)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index 275a3c5d59245e800f6fec34c1c1febff9231f5d..d210fc5b97289d546d2fe076fec38795d57f4725 100644
(file)
--- 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)