From fe0debedb6c735fdde3f154073c60dd085eb59c8 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Mon, 14 May 2018 15:27:15 -0700 Subject: [PATCH] [infer][buck] run Infer in single core on Buck projects Summary: Fixing the support for single core analysis in https://github.com/facebook/infer/commit/8ce79a0613aa7dba0feec92d301d82f5f8ffec98 was improving the performance of the genrule-based integration by more that 2X. Running Infer in single core more with the external compiler integration for Buck also improves the performance significantly. Reviewed By: mbouaziz Differential Revision: D7989255 fbshipit-source-id: 71fb842 --- infer/lib/python/inferlib/bucklib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index 2dc2c7c18..ffbbad4cb 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -49,7 +49,7 @@ def prepare_build(args): configuration that tells buck to use that script. """ - infer_options = ['--buck'] + infer_options = ['--buck', '--jobs', '1'] if args.java_jar_compiler is not None: infer_options += [