Linux buildbot fix: detect swig tool from PATH in shell script (before searching hardcoded directories)

llvm-svn: 168831
This commit is contained in:
Daniel Malea 2012-11-28 23:49:11 +00:00
parent f3614fd8e2
commit 16e126c70b
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ fi
# Next look for swig
#
SWIG=
if [ -f /usr/bin/swig ]
SWIG=`which swig`
if [ ! -x "$SWIG" -a -f /usr/bin/swig ]
then
SWIG=/usr/bin/swig
else