[infer][java] Force the Buck integration for Java to not use the Buck daemon

Summary: The Buck cache was not correctly invalidated when switching between the different analysis mode. This was causing the analysis results to be mixed up. This revision should fix this.

Reviewed By: sblackshear

Differential Revision: D5073606

fbshipit-source-id: eb14418
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 1fbc4a1b22
commit 735e906145

@ -72,6 +72,10 @@ def prepare_build(args):
logging.info('Setup Infer analysis mode for Buck: export INFER_ANALYSIS=1') logging.info('Setup Infer analysis mode for Buck: export INFER_ANALYSIS=1')
os.environ['INFER_ANALYSIS'] = '1' os.environ['INFER_ANALYSIS'] = '1'
# disable the Buck daemon as changes in the Buck config
# may be missed otherwise
os.environ['NO_BUCKD'] = '1'
# Create a script to be called by buck # Create a script to be called by buck
infer_script = None infer_script = None
with tempfile.NamedTemporaryFile(delete=False, with tempfile.NamedTemporaryFile(delete=False,

Loading…
Cancel
Save