[cfe-commits] [scan-build][PATCH] Fix clang++ pathname

Ted Kremenek kremenek at apple.com
Thu Jul 26 13:30:34 PDT 2012


Sorry I didn't see this until now.  LGTM.

On Jul 20, 2012, at 5:43 AM, Arnaud A. de Grandmaison <arnaud.allarddegrandmaison at parrot.com> wrote:

> 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
> 
> <0001-scan-build-Fix-clang-pathname.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list