[infer][java] Add special configuration to run Infer as an external compiler

Summary: Force the ABI generation mode when running Infer

Reviewed By: jvillard

Differential Revision: D4505673

fbshipit-source-id: 926a554
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 0e77e36235
commit 79c7a54b2f

@ -261,7 +261,9 @@ class Wrapper:
logging.info('Nothing to analyze') logging.info('Nothing to analyze')
else: else:
self.timer.start('Running Buck ...') self.timer.start('Running Buck ...')
javac_config = ['--config', 'tools.javac=' + infer_script] javac_config = [
'--config', 'tools.javac=' + infer_script,
'--config', 'java.abi_generation_mode=class']
buck_cmd = self.buck_cmd + javac_config buck_cmd = self.buck_cmd + javac_config
subprocess.check_call(buck_cmd) subprocess.check_call(buck_cmd)
self.timer.stop('Buck finished') self.timer.stop('Buck finished')

Loading…
Cancel
Save