diff options
-rwxr-xr-x | utils/countloc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/countloc.sh b/utils/countloc.sh index fe77de9184..736b8805df 100755 --- a/utils/countloc.sh +++ b/utils/countloc.sh @@ -19,7 +19,7 @@ # details. ##===----------------------------------------------------------------------===## -TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'` +TOPDIR=`llvm-config --src-root` if test -d "$TOPDIR" ; then cd $TOPDIR ./utils/llvmdo -dirs "include lib tools test utils examples" wc -l | awk '\ |