[cfe-commits] [scan-build][PATCH] Fix clang++ pathname
Arnaud A. de Grandmaison
arnaud.allarddegrandmaison at parrot.com
Fri Jul 20 05:43:28 PDT 2012
On Linux, when building clang with cmake, the installed executables look
like this:
lrwxrwxrwx 1 aadgrand users 9 Jun 29 09:46 clang -> clang-3.2
lrwxrwxrwx 1 aadgrand users 5 Jul 20 09:45 clang++ -> clang
-rwxr-xr-x 1 aadgrand users 31478564 Jul 20 09:32 clang-3.2
To get the clang++ pathname, scan-build blind append '++' to the real
path it found for clang (i.e. ..../clang-3.2).
The attached patch strips the version info from the executable name
before appending '++'.
OK to commit ?
Cheers,
--
Arnaud de Grandmaison
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-scan-build-Fix-clang-pathname.patch
Type: text/x-patch
Size: 835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120720/3ebbdecc/attachment.bin>
More information about the cfe-commits
mailing list