Bug#748777: clang-3.4: scan-build --use-cc broken

Aurelien Jacobs aurel at gnuage.org
Sun Jun 22 22:27:40 UTC 2014


On Sun, Jun 22, 2014 at 08:54:24AM -0700, Sylvestre Ledru wrote:
> On 20/05/2014 09:58, Aurelien Jacobs wrote:
> > Package: clang-3.4
> > Version: 1:3.4.1-3
> >
> > Dear Maintainer,
> >
> > scan-build stopped working for me since you added the following patch in
> > version 1:3.4.1-1:
> >   scan-build-fix-clang-detection.diff
> >
> > I use scan-build in a cross-compilation environement so I call it
> > with --use-cc:
> >   scan-build --use-cc=arm-none-eabi-gcc -o out make -e
> >
> The attached patch seems to fix it.
> 
> If you are happy about it, let me know and I will push that upstream too.

Great ! Well, it works for me (not using c++), but I think there is a
small mistake in the CXX compiler check, where you used a || instead of
a &&. It also seems more logical to me with parenthesis around the &&
part of the check. I'm not sure I'm really clear, so attached is a very
slightly modified version of your patch, which I tested as well and
which works fine for me.

> Thanks for this interesting bug report

Thanks for taking care of it !

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-build-search-path.diff
Type: text/x-diff
Size: 1468 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20140623/e45b4c04/attachment.diff>


More information about the Pkg-llvm-team mailing list