[ocaml] 4.08.1

Summary: thats_better

Reviewed By: ngorogiannis

Differential Revision: D18613810

fbshipit-source-id: 43c633a89
master
Jules Villard 5 years ago committed by Facebook Github Bot
parent 9941a16e98
commit 85659d8852

@ -824,7 +824,7 @@ endif
# This is a magical version number that doesn't reinstall the world when added on top of what we
# have in opam.locked. To upgrade this version number, manually try to install several utop versions
# until you find one that doesn't recompile the world. TODO(t20828442): get rid of magic
OPAM_DEV_DEPS = ocp-indent merlin utop.2.4.0 webbrowser
OPAM_DEV_DEPS = ocp-indent merlin utop.2.4.2 webbrowser
ifneq ($(EMACS),no)
OPAM_DEV_DEPS += tuareg

@ -17,7 +17,7 @@ DEPENDENCIES_DIR="$INFER_ROOT/facebook/dependencies"
PLATFORM="$(uname)"
SANDCASTLE=${SANDCASTLE:-}
NCPU="$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)"
INFER_OPAM_DEFAULT_SWITCH="ocaml-variants.4.07.1+flambda"
INFER_OPAM_DEFAULT_SWITCH="ocaml-variants.4.08.1+flambda"
INFER_OPAM_DEFAULT_COMPILER="$INFER_OPAM_DEFAULT_SWITCH"
INFER_OPAM_SWITCH=${INFER_OPAM_SWITCH:-$INFER_OPAM_DEFAULT_SWITCH}
INFER_OPAM_COMPILER=${INFER_OPAM_COMPILER:-$INFER_OPAM_DEFAULT_COMPILER}

@ -29,7 +29,7 @@ let sort_by_decreasing_preference_to_report issues =
if n <> 0 then n
else
let n = String.compare x.hash y.hash in
if n <> 0 then n else Pervasives.compare x y
if n <> 0 then n else Stdlib.compare x y
in
List.sort ~compare issues

@ -31,7 +31,7 @@ module Runner = struct
let run runner =
(* Flush here all buffers to avoid passing unflushed data to forked processes, leading to duplication *)
Pervasives.flush_all () ;
Stdlib.flush_all () ;
(* Compact heap before forking *)
Gc.compact () ;
ProcessPool.run runner

@ -742,7 +742,7 @@ let set_curr_speclist_for_parse_mode ~usage parse_mode =
let curr_usage status =
prerr_endline (String.concat_array ~sep:" " !args_to_parse) ;
prerr_endline usage ;
Pervasives.exit status
Stdlib.exit status
in
(* "-help" and "--help" are automatically recognized by Arg.parse, so we have to give them special
treatment *)
@ -963,7 +963,7 @@ let parse_args ~usage initial_action ?initial_command args =
parse_loop () )
else (
ANSITerminal.prerr_string L.(term_styles_of_style Fatal) usage_msg ;
Pervasives.exit 1 )
Stdlib.exit 1 )
| Arg.Help _ ->
(* we handle --help by ourselves and error on -help, so Arg has no way to raise Help
anymore *)

@ -1931,7 +1931,7 @@ and progress_bar =
and progress_bar_style =
CLOpt.mk_symbol ~long:"progress-bar-style"
~symbols:[("auto", `Auto); ("plain", `Plain); ("multiline", `MultiLine)]
~eq:Pervasives.( = ) ~default:`Auto
~eq:Stdlib.( = ) ~default:`Auto
~in_help:[(Analyze, manual_generic); (Capture, manual_generic)]
"Style of the progress bar. $(b,auto) selects $(b,multiline) if connected to a tty, otherwise \
$(b,plain)."
@ -2604,7 +2604,7 @@ let post_parsing_initialization command_opt =
CommandDoc.infer command_opt
| `None ->
() ) ;
if !version <> `None || !help <> `None then Pervasives.exit 0 ;
if !version <> `None || !help <> `None then Stdlib.exit 0 ;
let uncaught_exception_handler exn raw_backtrace =
let is_infer_exit_zero = match exn with L.InferExit 0 -> true | _ -> false in
let should_print_backtrace_default =
@ -2646,7 +2646,7 @@ let post_parsing_initialization command_opt =
let exitcode = L.exit_code_of_exception exn in
L.log_uncaught_exception exn ~exitcode ;
Epilogues.run () ;
Pervasives.exit exitcode
Stdlib.exit exitcode
in
Caml.Printexc.set_uncaught_exception_handler uncaught_exception_handler ;
F.set_margin !margin ;

@ -27,7 +27,7 @@ module IO = struct
let prepare () =
close () ;
let fname = events_dir ^/ (Unix.getpid () |> Pid.to_string) ^ log_file_extension in
let oc = Pervasives.open_out_gen [Open_append; Open_creat] 0o666 fname in
let oc = Stdlib.open_out_gen [Open_append; Open_creat] 0o666 fname in
out_chan := Some oc
@ -37,7 +37,7 @@ module IO = struct
let write_skipped_pname pname =
let fname = events_dir ^/ "skipped_functions" ^ log_file_extension in
let oc = Pervasives.open_out_gen [Open_append; Open_creat] 0o666 fname in
let oc = Stdlib.open_out_gen [Open_append; Open_creat] 0o666 fname in
Out_channel.output_string oc pname ;
Out_channel.output_char oc '\n' ;
Out_channel.close oc

@ -320,7 +320,7 @@ let setup_log_file () =
(* assumes the results dir exists already *)
let logfile_path = Config.toplevel_results_dir ^/ Config.log_file in
let preexisting_logfile = PolyVariantEqual.( = ) (Sys.file_exists logfile_path) `Yes in
let chan = Pervasives.open_out_gen [Open_append; Open_creat] 0o666 logfile_path in
let chan = Stdlib.open_out_gen [Open_append; Open_creat] 0o666 logfile_path in
let file_fmt =
let f = F.formatter_of_out_channel chan in
if Config.print_logs then dup_formatter f F.err_formatter else f

@ -231,7 +231,7 @@ let logger =
( if is_toplevel_process then
let preexisting_logfile = PolyVariantEqual.( = ) (Sys.file_exists log_file) `Yes in
if preexisting_logfile then Unix.unlink log_file ) ;
let out_channel = Pervasives.open_out_gen [Open_append; Open_creat] 0o666 log_file in
let out_channel = Stdlib.open_out_gen [Open_append; Open_creat] 0o666 log_file in
let logger = F.formatter_of_out_channel out_channel in
register_gc_stats logger ;
( if is_toplevel_process then (

@ -402,7 +402,7 @@ let fork_child ~file_lock ~child_prelude ~slot (updates_r, updates_w) ~f ~epilog
Out_channel.close updates_oc ;
In_channel.close orders_ic ;
Epilogues.run () ;
Pervasives.exit 0
Stdlib.exit 0
| `In_the_parent pid ->
let[@warning "-26"] to_child_r = Unix.close to_child_r in
{pid; down_pipe= Unix.out_channel_of_descr to_child_w}

@ -193,7 +193,7 @@ let with_file_out file ~f =
type file_lock =
{ file: string
; oc: Pervasives.out_channel
; oc: Stdlib.out_channel
; fd: Core.Unix.File_descr.t
; lock: unit -> unit
; unlock: unit -> unit }

@ -59,7 +59,7 @@ val with_file_out : string -> f:(Out_channel.t -> 'a) -> 'a
type file_lock =
{ file: string
; oc: Pervasives.out_channel
; oc: Stdlib.out_channel
; fd: Core.Unix.File_descr.t
; lock: unit -> unit
; unlock: unit -> unit }

@ -39,9 +39,9 @@ module ANSITerminal : module type of ANSITerminal = struct
(* more careful about when the channel is connected to a tty *)
let print_string = if Unix.(isatty stdout) then print_string else fun _ -> Pervasives.print_string
let print_string = if Unix.(isatty stdout) then print_string else fun _ -> Stdlib.print_string
let prerr_string = if Unix.(isatty stderr) then prerr_string else fun _ -> Pervasives.prerr_string
let prerr_string = if Unix.(isatty stderr) then prerr_string else fun _ -> Stdlib.prerr_string
let printf styles fmt = Format.ksprintf (fun s -> print_string styles s) fmt

@ -38,8 +38,8 @@ let compute_statistics values =
assert (num_elements > 0) ;
let max_index = num_elements - 1 in
let pct_index = float_of_int max_index *. pct in
let low_index = int_of_float (Pervasives.floor pct_index) in
let high_index = int_of_float (Pervasives.ceil pct_index) in
let low_index = int_of_float (Stdlib.floor pct_index) in
let high_index = int_of_float (Stdlib.ceil pct_index) in
let low = values_arr.(low_index) in
let high = values_arr.(high_index) in
(low +. high) /. 2.0

@ -21,7 +21,7 @@ install: [
]
depends: [
"ANSITerminal" {>="0.7"}
"apron"
"apron" {<"v0.9.12"}
"async" {>="v0.12.0" & < "v0.13"}
"atdgen" {>="2.0.0"}
"base64" {>="3.0.0"}
@ -38,7 +38,7 @@ depends: [
"javalib" {>="3.1.1"}
"mlgmpidl" {>="1.2.12"}
"mtime"
"ocaml" {>="4.06.0"}
"ocaml" {>="4.08.0"}
"ocamlfind" {build}
"ocamlgraph"
"ounit" {>="2.0.5"}

@ -70,16 +70,15 @@ depends: [
"menhir" {= "20190924"}
"mlgmpidl" {= "1.2.12"}
"mtime" {= "1.2.0"}
"num" {= "1.2"}
"ocaml" {= "4.07.1"}
"num" {= "1.3"}
"ocaml" {= "4.08.1"}
"ocaml-compiler-libs" {= "v0.12.1"}
"ocaml-config" {= "1"}
"ocaml-migrate-parsetree" {= "1.4.0"}
"ocaml-variants" {= "4.07.1+flambda"}
"ocaml-migrate-parsetree" {= "1.5.0"}
"ocaml-variants" {= "4.08.1+flambda"}
"ocamlbuild" {= "0.14.0"}
"ocamlfind" {= "1.8.1"}
"ocamlgraph" {= "1.8.8"}
"octavius" {= "1.2.1"}
"octavius" {= "1.2.2"}
"ounit" {= "2.2.1"}
"ounit2" {= "2.2.1"}
"parmap" {= "1.0-rc11"}
@ -110,7 +109,7 @@ depends: [
"ppx_sexp_message" {= "v0.12.0"}
"ppx_sexp_value" {= "v0.12.0"}
"ppx_stable" {= "v0.12.0"}
"ppx_tools" {= "5.1+4.06.0"}
"ppx_tools" {= "5.3+4.08.0"}
"ppx_typerep_conv" {= "v0.12.0"}
"ppx_variants_conv" {= "v0.12.0"}
"ppxfind" {= "1.3"}
@ -124,7 +123,7 @@ depends: [
"sexplib0" {= "v0.12.0"}
"spawn" {= "v0.13.0"}
"splittable_random" {= "v0.12.0"}
"sqlite3" {= "4.4.1"}
"sqlite3" {= "5.0.1"}
"stdio" {= "v0.12.0"}
"stdlib-shims" {= "0.1.0"}
"textutils" {= "v0.12.0"}

Loading…
Cancel
Save