On 2016-08-23 6:30 PM, Gerald Squelart wrote:
> On the build-time vs static analysis point:
> 
> I'd much prefer to have errors pointed out right from './mach build', which I 
> can fix on the spot; rather than wait hours until I notice static analysis 
> errors on a treeherder build.
> (e.g., I always forget explicit/MOZ_IMPLICIT!)
> 
> Unless we can get cross-platform & consistent static analysis from our build 
> environments?

For the errors discussed in this thread, you can add |ac_add_options
--enable-warnings-as-errors| to your mozconfig to catch them locally.
For our clang based static analysis checks, you can add |ac_add_options
--enable-clang-plugin| to your mozconfig.  Make sure to use a clang
binary from llvm.org for best results (clang from Linux distros may or
may not work depending on how the distro packages it.)

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to