|
|
@ -18,8 +18,6 @@ java_library(
|
|
|
|
out = 'out'
|
|
|
|
out = 'out'
|
|
|
|
clean_cmd = ' '.join(['rm', '-rf', out])
|
|
|
|
clean_cmd = ' '.join(['rm', '-rf', out])
|
|
|
|
classpath = ':'.join([('$(classpath ' + path + ')') for path in dependencies])
|
|
|
|
classpath = ':'.join([('$(classpath ' + path + ')') for path in dependencies])
|
|
|
|
env_cmd = ' '.join(['export', 'INFER_REPORT_EXPENSIVE_CALLS=1'])
|
|
|
|
|
|
|
|
ondemand_mode = ' '.join(['export', 'INFER_ONDEMAND=1'])
|
|
|
|
|
|
|
|
infer_cmd = ' '.join([
|
|
|
|
infer_cmd = ' '.join([
|
|
|
|
'infer',
|
|
|
|
'infer',
|
|
|
|
'--no-progress-bar',
|
|
|
|
'--no-progress-bar',
|
|
|
@ -32,7 +30,7 @@ infer_cmd = ' '.join([
|
|
|
|
'$SRCS',
|
|
|
|
'$SRCS',
|
|
|
|
])
|
|
|
|
])
|
|
|
|
copy_cmd = ' '.join(['cp', out + '/report.csv', '$OUT'])
|
|
|
|
copy_cmd = ' '.join(['cp', out + '/report.csv', '$OUT'])
|
|
|
|
command = ' && '.join([clean_cmd, ondemand_mode, env_cmd, infer_cmd, copy_cmd])
|
|
|
|
command = ' && '.join([clean_cmd, infer_cmd, copy_cmd])
|
|
|
|
|
|
|
|
|
|
|
|
genrule(
|
|
|
|
genrule(
|
|
|
|
name = 'analyze',
|
|
|
|
name = 'analyze',
|
|
|
|