projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5ecfa2
)
Handle broken swig version that prints version info on stderr.
author
Steve Reinhardt
<stever@eecs.umich.edu>
Sun, 15 Jul 2007 01:35:26 +0000
(21:35 -0400)
committer
Steve Reinhardt
<stever@eecs.umich.edu>
Sun, 15 Jul 2007 01:35:26 +0000
(21:35 -0400)
--HG--
extra : convert_revision :
83021779c40972fa56893d21713c6115cd481bc4
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index fa2366963f227a0d310679b7d99c105c81fed472..ffcd84706f07cf44a48ad7563c3025577435dae4 100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-259,7
+259,8
@@
if not env.has_key('SWIG'):
# Check for appropriate SWIG version
swig_version = os.popen('swig -version').read().split()
# First 3 words should be "SWIG Version x.y.z"
-if swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
+if len(swig_version) < 3 or \
+ swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
print 'Error determining SWIG version.'
Exit(1)