File tree 6 files changed +11
-39
lines changed
6 files changed +11
-39
lines changed Original file line number Diff line number Diff line change 81
81
if : runner.os != 'Windows'
82
82
- run : opam exec -- opam install -v shcaml.0.2.1 # this tests the cppo plugin
83
83
if : ${{ ! startsWith(steps.conf.outputs.ocamlversion, '5.') && runner.os != 'Windows' && runner.os != 'macOS'}}
84
+ - run : opam exec -- opam install -v tgls.0.8.6
85
+ # this caught an ocamlbuild regression in https://github.com/ocaml/opam-repository/pull/27442
86
+ # (incompatible with OCaml >=5.2 and with Windows)
87
+ if : ${{ ! startsWith(steps.conf.outputs.ocamlversion, '5.') && runner.os != 'Windows'}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ let execute ?quiet ?pretend cmd =
291
291
| Some (_ , exn ) -> raise exn
292
292
| _ -> ()
293
293
294
- let run_and_read ?(quiet =false ) cmd =
294
+ let run_spec_and_read ?(quiet =false ) cmd =
295
295
let kont = string_print_of_command_spec cmd quiet false in
296
296
My_unix. run_and_read (kont () )
297
297
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ open Command;;
26
26
module S = Set. Make (String )
27
27
28
28
let stdlib_dir = lazy begin
29
- let ocamlc_where = ! Options. build_dir / ( Pathname. mk " ocamlc.where " ) in
30
- let () = Command. execute ~quiet: true ( Cmd ( S [ ! Options. ocamlc; A " -where " ; Sh " > " ; P ocamlc_where])) in
31
- String. chomp (read_file ocamlc_where )
29
+ String. chomp
30
+ ( Command. run_spec_and_read ~quiet: true
31
+ ( S [ ! Options. ocamlc; A " -where " ]) )
32
32
end
33
33
34
34
let flag_and_dep = Flags. flag_and_dep
Original file line number Diff line number Diff line change @@ -401,8 +401,8 @@ let init () =
401
401
ignore_list := List. map String. capitalize_ascii ! ignore_list;
402
402
403
403
let raw_ocamlc_config =
404
- try Command. run_and_read (S [! ocamlc; A " -config" ])
405
- with Failure _ -> Command. run_and_read (S [! ocamlopt; A " -config" ])
404
+ try Command. run_spec_and_read (S [! ocamlc; A " -config" ])
405
+ with Failure _ -> Command. run_spec_and_read (S [! ocamlopt; A " -config" ])
406
406
in
407
407
let ocamlc_config_lines = String. split_on_char '\n' raw_ocamlc_config in
408
408
let ocamlc_configs =
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ module type COMMAND = sig
220
220
val atomize_paths : string list -> spec
221
221
222
222
(* * Run the command specification and returns its output *)
223
- val run_and_read : ?quiet : bool -> spec -> string
223
+ val run_spec_and_read : ?quiet : bool -> spec -> string
224
224
225
225
(* * Run the command. *)
226
226
val execute : ?quiet : bool -> ?pretend : bool -> t -> unit
You can’t perform that action at this time.
0 commit comments