diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-06-20 19:32:42 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-06-20 19:32:42 -0400 |
commit | c64731af61a2d1b0917e7f09f2ed40569b8c19b6 (patch) | |
tree | e676082d401adc3b5c989549564a304eba267f0a | |
parent | eaf19d2815adc2c736fbd3fbdf0d8931bd98abd6 (diff) | |
download | gem5-c64731af61a2d1b0917e7f09f2ed40569b8c19b6.tar.xz |
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.
-rwxr-xr-x | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 1b46e4a4c..b33495939 100755 --- a/SConstruct +++ b/SConstruct @@ -580,7 +580,7 @@ if not main.has_key('SWIG'): Exit(1) # 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" if len(swig_version) < 3 or \ swig_version[0] != 'SWIG' or swig_version[1] != 'Version': |