Skip to content

Commit

Permalink
Don't call plastc if $PLAST is set. See https://github.com/Andersbakk…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Aug 27, 2014
1 parent 746bdc4 commit 9bde78a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/gcc-rtags-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function followSymlink()
rc=`which rc`
for i in `which -a "\`basename $0\`"`; do
resolved=`followSymlink $i`
if [ `basename $resolved` != "gcc-rtags-wrapper.sh" ]; then
filename=`basename $resolved`
if [ "$filename" != "gcc-rtags-wrapper.sh" ] && [ -z "$PLAST" -o "$filename" != "plastc" ]; then
[ -n "$RTAGS_SERVER_FILE" ] && RTAGS_ARGS="$RTAGS_ARGS -n$RTAGS_SERVER_FILE"
[ -n "$RTAGS_PROJECT" ] && RTAGS_ARGS="$RTAGS_ARGS --project-root=$RTAGS_PROJECT"
[ -z "$RTAGS_COMPILE_TIMEOUT" ] && RTAGS_COMPILE_TIMEOUT=3000
Expand Down

0 comments on commit 9bde78a

Please sign in to comment.