From f5a9cb44762ff37802094a9b5b303816ffd7841d Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Wed, 12 Oct 2016 12:21:30 -0700 Subject: [PATCH] [infer][java] export the analyzer used and the version of Infer as an environment variable that can be read from BUCK files Reviewed By: sblackshear Differential Revision: D4006125 fbshipit-source-id: ea5decd --- infer/lib/python/inferlib/bucklib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index 4a264c565..bc468947c 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -92,6 +92,7 @@ def prepare_build(args): # Export the Infer command as environment variables os.environ['INFER_JAVA_BUCK_OPTIONS'] = json.dumps(infer_command) + os.environ['INFER_RULE_KEY'] = utils.infer_key(args.analyzer) # Create a script to be called by buck infer_script = None