From b3864c0cfcc4e1fd537bc18b1f9045873c7cfb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 13 Nov 2013 17:59:21 +0100 Subject: [PATCH] [analyzer] Disable objc leaks checker. --- Rakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index bd04f641..68d8f840 100644 --- a/Rakefile +++ b/Rakefile @@ -61,8 +61,12 @@ task :build => targets.map { |x| "build:#{x}" } desc "Run the clang static analyzer against the source" task :analyze do - ENV['DEBUG'] = '1' - sh './static-analyzer/scan-build --view --use-analyzer=/usr/bin/clang --use-cc=/usr/bin/clang --use-c++=/usr/bin/clang++ -o ./static-analysis rake' + options = [] + options << '--view' + options << '-disable-checker osx.cocoa.RetainCount' + options << '--use-analyzer=/usr/bin/clang' + options << '--use-cc=/usr/bin/clang --use-c++=/usr/bin/clang++' + sh "./static-analyzer/scan-build #{options.join(' ')} -o ./static-analysis rake DEBUG=1" end targets.each do |target|