Always run C compiler with -fsyntax-only

Summary:
buck #infer flavor doesn't rely on .o files so we don't need to generate them.
It will save memory/IO and possibly time

Reviewed By: jvillard, martinoluca

Differential Revision: D3379463

fbshipit-source-id: 1d48f7a
master
Andrzej Kotulski 9 years ago committed by Facebook Github Bot 7
parent 0a2c47cdd5
commit b81b3f4791

@ -155,8 +155,11 @@ class BuckAnalyzer:
print('Please run this command from the folder where .buckconfig '
'is located')
return os.EX_USAGE
env_vars = utils.read_env()
env_vars['FCP_RUN_SYNTAX_ONLY'] = '1'
env = utils.encode_env(env_vars)
subprocess.check_call(
self.cmd + self.create_cxx_buck_configuration_args())
self.cmd + self.create_cxx_buck_configuration_args(), env=env)
return os.EX_OK
def capture_with_flavors(self):

Loading…
Cancel
Save