@ -110,30 +110,21 @@ let collect_all_summaries root_summaries_dir stacktrace_file stacktraces_dir =
IList . iter process_stacktrace input_output_file_pairs
IList . iter process_stacktrace input_output_file_pairs
let crashcontext_epilogue ~ in_buck_mode =
let crashcontext_epilogue ~ in_buck_mode =
(* check whether this is the top-level infer process *)
(* if we are the top-level process, then find the output directory and
let top_level_infer =
collect all crashcontext summaries under it in a single
(* if the '--buck' option was passed, then this is the top level process
crashcontext . json file .
iff the build command starts with ' buck' * )
Important : Note that when running under buck , this is not the final
if Config . buck then in_buck_mode
infer - out / directory , but instead it is buck - out / , which contains the
(* otherwise, we assume javac as the build command and thus only one
infer output directories for every buck target . * )
process * )
let root_summaries_dir = if in_buck_mode then begin
else true in
let project_root = match Config . project_root with
if top_level_infer then
| Some root -> root
(* if we are the top-level process, then find the output directory and
| None -> Filename . dirname Config . results_dir in
collect all crashcontext summaries under it in a single
let buck_out = match Config . buck_out with
crashcontext . json file .
| Some dir -> dir
Important : Note that when running under buck , this is not the final
| None -> " buck-out " in
infer - out / directory , but instead it is buck - out / , which contains the
project_root // buck_out
infer output directories for every buck target . * )
end
let root_summaries_dir = if in_buck_mode then begin
else Config . results_dir in
let project_root = match Config . project_root with
collect_all_summaries
| Some root -> root
root_summaries_dir Config . stacktrace Config . stacktraces_dir
| None -> Filename . dirname Config . results_dir in
let buck_out = match Config . buck_out with
| Some dir -> dir
| None -> " buck-out " in
project_root // buck_out
end
else Config . results_dir in
collect_all_summaries
root_summaries_dir Config . stacktrace Config . stacktraces_dir