Fix CCache test.sh when CC contains full path
Fixes symbolic link creation. Also fixes test.sh when SWIG contains a full path. Closes #1212
This commit is contained in:
parent
d8478d671d
commit
82513bbf8f
1 changed files with 8 additions and 6 deletions
|
|
@ -451,14 +451,16 @@ swigtests
|
||||||
|
|
||||||
if test -z "$NOSOFTLINKSTEST"; then
|
if test -z "$NOSOFTLINKSTEST"; then
|
||||||
testsuite="link"
|
testsuite="link"
|
||||||
ln -s $CCACHE $COMPILER
|
compilername=`basename $COMPILER`
|
||||||
CCACHE_COMPILE="./$COMPILER"
|
ln -s $CCACHE ./$compilername
|
||||||
|
CCACHE_COMPILE="./$compilername"
|
||||||
basetests
|
basetests
|
||||||
rm "./$COMPILER"
|
rm "./$compilername"
|
||||||
ln -s $CCACHE $SWIG
|
compilername=`basename $SWIG`
|
||||||
CCACHE_COMPILE="./$SWIG"
|
ln -s $CCACHE ./$compilername
|
||||||
|
CCACHE_COMPILE="./$compilername"
|
||||||
swigtests
|
swigtests
|
||||||
rm "./$SWIG"
|
rm "./$compilername"
|
||||||
else
|
else
|
||||||
echo "skipping testsuite link"
|
echo "skipping testsuite link"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue