diff --git a/infer/bin/BuckAnalyze b/infer/bin/BuckAnalyze index e38e0f184..ce66c52fc 100755 --- a/infer/bin/BuckAnalyze +++ b/infer/bin/BuckAnalyze @@ -76,6 +76,9 @@ def prepare_build(args): if args.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. infer_cache_dir = os.path.join(args.infer_out, 'cache') if not os.path.isdir(infer_cache_dir): diff --git a/infer/lib/capture/buck.py b/infer/lib/capture/buck.py index bbd2d060d..f100b795e 100644 --- a/infer/lib/capture/buck.py +++ b/infer/lib/capture/buck.py @@ -59,6 +59,8 @@ class BuckAnalyzer: def capture(self): # BuckAnalyze is a special case, and we run the analysis from here 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: capture_cmd.append('-g') if self.args.no_filtering: