swig: Use SWIG from environment when determining version
This patch fixes a minor issue in the SConstruct where a hardcoded swig is used instead of the environment SWIG when determining the version.
This commit is contained in:
parent
eaf19d2815
commit
c64731af61
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ if not main.has_key('SWIG'):
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
# Check for appropriate SWIG version
|
# Check for appropriate SWIG version
|
||||||
swig_version = readCommand(('swig', '-version'), exception='').split()
|
swig_version = readCommand([main['SWIG'], '-version'], exception='').split()
|
||||||
# First 3 words should be "SWIG Version x.y.z"
|
# First 3 words should be "SWIG Version x.y.z"
|
||||||
if len(swig_version) < 3 or \
|
if len(swig_version) < 3 or \
|
||||||
swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
|
swig_version[0] != 'SWIG' or swig_version[1] != 'Version':
|
||||||
|
|
Loading…
Reference in a new issue