From ff737edf933539bfab8917b55b68a7de79e8bec8 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Mon, 21 Mar 2016 21:21:57 -0700 Subject: [PATCH] Fix broken caching support for the Buck integration Summary:public It seems that the support for using the Buck cache with Infer has been brocken for a while. Reviewed By: sblackshear Differential Revision: D3079493 fb-gh-sync-id: fd92d1c shipit-source-id: fd92d1c --- infer/lib/python/inferlib/bucklib.py | 5 ----- infer/lib/python/inferlib/jwlib.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index abf0af8a1..bc43bc46a 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -53,11 +53,6 @@ cmd = ['{0}'] + {1} + ['--', 'javac'] + sys.argv[1:] subprocess.check_call(cmd) """ -LOCAL_CONFIG = """\ - [tools] - javac = %s -""" - def prepare_build(args): """Creates script that redirects javac calls to infer and a local buck diff --git a/infer/lib/python/inferlib/jwlib.py b/infer/lib/python/inferlib/jwlib.py index 7c34ccc02..8fbd08d89 100644 --- a/infer/lib/python/inferlib/jwlib.py +++ b/infer/lib/python/inferlib/jwlib.py @@ -186,7 +186,7 @@ class AnalyzerWithFrontendWrapper(analyze.AnalyzerWrapper): if self.javac.args.version: if self.args.buck: key = self.args.analyzer - print(utils.infer_key(key), file=sys.stderr) + utils.stderr(utils.infer_key(key)) else: return self.javac.run() else: