diff options
-rw-r--r-- | src/engine/SCons/Tool/swig.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/swig.py b/src/engine/SCons/Tool/swig.py index 309585d..ce54e62 100644 --- a/src/engine/SCons/Tool/swig.py +++ b/src/engine/SCons/Tool/swig.py @@ -139,9 +139,13 @@ def _get_swig_version(env, swig): if pipe.wait() != 0: return out = pipe.stdout.read() - match = re.search(r'SWIG Version\s+(\S+)$', out, re.MULTILINE) + match = re.search(r'SWIG Version\s+(\S+).*', out, re.MULTILINE) if match: + # print "Version is:%s"%match.group(1) return match.group(1) + else: + # print "Unable to detect version: [%s]"%out + pass def generate(env): """Add Builders and construction variables for swig to an Environment.""" |