From f05d98321ab6d400b31611fbb6121c9fdcff1ded Mon Sep 17 00:00:00 2001 From: Martin Trojer Date: Wed, 5 Jun 2019 07:23:17 -0700 Subject: [PATCH] only add --blacklist-regex flag in buck mode Reviewed By: jvillard Differential Revision: D15624363 fbshipit-source-id: f0cf0758a --- infer/src/integration/Driver.ml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/infer/src/integration/Driver.ml b/infer/src/integration/Driver.ml index 292adad7e..3d1d6bc5e 100644 --- a/infer/src/integration/Driver.ml +++ b/infer/src/integration/Driver.ml @@ -218,9 +218,11 @@ let capture ~changed_files = function let infer_py = Config.lib_dir ^/ "python" ^/ "infer.py" in let args = List.rev_append Config.anon_args - ( ( if not (List.is_empty Config.buck_blacklist) then - ["--blacklist-regex"; "(" ^ String.concat ~sep:")|(" Config.buck_blacklist ^ ")"] - else [] ) + ( ( match (build_system, Config.buck_blacklist) with + | Config.BBuck, _ :: _ -> + ["--blacklist-regex"; "(" ^ String.concat ~sep:")|(" Config.buck_blacklist ^ ")"] + | _ -> + [] ) @ (if not Config.continue_capture then [] else ["--continue"]) @ ( match Config.force_integration with | None ->