The option -o was not working with the Buck integration

Reviewed By: @martinoluca

Differential Revision: D2519918

fb-gh-sync-id: 94156c9
master
jrm 9 years ago committed by facebook-github-bot-7
parent cb0380eb4e
commit d825302189

@ -76,6 +76,9 @@ def prepare_build(args):
if args.no_filtering: if args.no_filtering:
infer_options.append('--no-filtering') infer_options.append('--no-filtering')
if args.infer_out is not None:
infer_options += ['--out', args.infer_out]
# Create a temporary directory as a cache for jar files. # Create a temporary directory as a cache for jar files.
infer_cache_dir = os.path.join(args.infer_out, 'cache') infer_cache_dir = os.path.join(args.infer_out, 'cache')
if not os.path.isdir(infer_cache_dir): if not os.path.isdir(infer_cache_dir):

@ -59,6 +59,8 @@ class BuckAnalyzer:
def capture(self): def capture(self):
# BuckAnalyze is a special case, and we run the analysis from here # BuckAnalyze is a special case, and we run the analysis from here
capture_cmd = [utils.get_cmd_in_bin_dir('BuckAnalyze')] capture_cmd = [utils.get_cmd_in_bin_dir('BuckAnalyze')]
if self.args.infer_out is not None:
capture_cmd += ['--out', self.args.infer_out]
if self.args.debug: if self.args.debug:
capture_cmd.append('-g') capture_cmd.append('-g')
if self.args.no_filtering: if self.args.no_filtering:

Loading…
Cancel
Save