revive the @PerforamanceCritical checker when using Buck

Summary:
public
The PerformanceCritical Checker was not running on Buck project due to a conflict between the incremental mode and the ondemand mode.

Reviewed By: cristianoc

Differential Revision: D2891649

fb-gh-sync-id: 0a503d8
master
jrm 9 years ago committed by facebook-github-bot-1
parent 49d7bdb6bd
commit dba7e7124f

@ -112,8 +112,11 @@ def main():
args = global_argparser.parse_args(to_parse) args = global_argparser.parse_args(to_parse)
if (imported_module and not args.incremental and remove_infer_out = (imported_module
capture_module_name != 'analyze'): and not args.incremental
and capture_module_name != 'analyze'
and not args.buck)
if remove_infer_out:
analyze.remove_infer_out(args.infer_out) analyze.remove_infer_out(args.infer_out)
if imported_module: if imported_module:

@ -430,8 +430,7 @@ class Infer:
elif self.args.project_root: elif self.args.project_root:
infer_options += ['-project_root', self.args.project_root] infer_options += ['-project_root', self.args.project_root]
if self.args.analyzer in [config.ANALYZER_CHECKERS, if self.args.analyzer in [config.ANALYZER_CHECKERS]:
config.ANALYZER_ERADICATE]:
os.environ['INFER_ONDEMAND'] = 'Y' os.environ['INFER_ONDEMAND'] = 'Y'
os.environ['INFER_OPTIONS'] = ' '.join(infer_options) os.environ['INFER_OPTIONS'] = ' '.join(infer_options)

@ -66,7 +66,6 @@ def prepare_build(args):
infer_options = [ infer_options = [
'--buck', '--buck',
'--incremental',
'--analyzer', args.analyzer, '--analyzer', args.analyzer,
] ]

Loading…
Cancel
Save