[Infer][Buck] Invoke buck with *//cxx.pch_enabled=false to disable the use of precompiled headers

Reviewed By: mzlee

Differential Revision: D4015308

fbshipit-source-id: 6c2a6fe
master
Martino Luca 8 years ago committed by Facebook Github Bot
parent 072fe0994f
commit d05b1f172a

@ -128,6 +128,8 @@ class BuckAnalyzer:
'*//infer.clang_compiler={clang}'.format(clang=clang_path),
'--config',
'*//infer.clang_plugin={plugin}'.format(plugin=plugin_path),
'--config',
'*//cxx.pch_enabled=false',
] + self.args.Xbuck
if self.args.xcode_developer_dir is not None:

@ -163,7 +163,8 @@ let get_compilation_database changed_files =
| buck :: build :: args ->
(check_args_for_targets args;
let args_with_flavor = add_flavor_to_targets args in
let buck_build = Array.of_list (buck :: build :: args_with_flavor) in
let buck_build = Array.of_list
(buck :: build :: "--config" :: "*//cxx.pch_enabled=false" :: args_with_flavor) in
Process.create_process_and_wait buck_build;
let buck_targets_list = buck :: "targets" :: "--show-output" :: args_with_flavor in
let buck_targets = String.concat " " buck_targets_list in

Loading…
Cancel
Save