From 81b936eede7e1618de523646a5eeaef41a1c9dda Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Wed, 21 Feb 2018 17:21:57 -0800 Subject: [PATCH] [infer][java] no longer use the version of javac as cache key for the Buck integration Reviewed By: sblackshear Differential Revision: D7048502 fbshipit-source-id: f412f99 --- infer/src/base/Config.ml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/infer/src/base/Config.ml b/infer/src/base/Config.ml index 67ed701c9..c50b8f4b8 100644 --- a/infer/src/base/Config.ml +++ b/infer/src/base/Config.ml @@ -2019,18 +2019,6 @@ let post_parsing_initialization command_opt = print_endline version_string ; prerr_endline version_string | `Javac when !buck -> (* print buck key *) - let javac_version = - let javac_args = - if infer_is_javac then - match Array.to_list Sys.argv with [] -> [] | _ :: args -> "javac" :: args - else List.rev !rest - in - (* stderr contents of build command *) - let chans = Unix.open_process_full (String.concat ~sep:" " javac_args) ~env:[||] in - let err = String.strip (In_channel.input_all chans.stderr) in - Unix.close_process_full chans |> ignore ; - err - in let analyzer_name = List.Assoc.find_exn ~equal:equal_analyzer (List.map ~f:(fun (n, a) -> (a, n)) string_to_analyzer) @@ -2044,8 +2032,8 @@ let post_parsing_initialization command_opt = | None -> Version.commit in - F.printf "%s/%s/%s@." javac_version analyzer_name infer_version ; - F.eprintf "%s/%s/%s@." javac_version analyzer_name infer_version + F.printf "%s/%s@." analyzer_name infer_version ; + F.eprintf "%s/%s@." analyzer_name infer_version | `Full -> print_endline version_string | `Javac ->