[PATCH] D10356: scan-build: Add --analyzer-target option

Ted Kremenek kremenek at apple.com
Mon Aug 3 14:17:24 PDT 2015


krememek added a comment.

In http://reviews.llvm.org/D10356#216741, @honggyu.kim wrote:

> I have updated the new patchset with more information in help message and changed the option name to —analyzer-target.
>  If you think the "extra flags to pass to the compiler” is still needed, I will write another patch for that.
>  I appreciate your comment and suggestion.


What I am getting at is that I’m not convinced this is a good option to add to scan-build.  Doing cross-compilation accurately involves many factors beyond just passing the target triple.  The build itself probably needs to be setup to do a cross-compile.  If that is the case, this really seems like jerry-rigging something into scan-build to facilitate a set of experiments, but not necessarily enable a new workflow for analyzing cross-compiled projects.


http://reviews.llvm.org/D10356







More information about the cfe-commits mailing list