Skip to content

Commit bd6b944

Browse files
authored
Merge pull request #945 from goblint/ocaml-5
Fix compilation on OCaml 5.0.0~rc1
2 parents f26292d + 9321d11 commit bd6b944

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/unlocked.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- os: ubuntu-latest
3333
ocaml-compiler: 4.14.x
3434
z3: true
35+
- os: ubuntu-latest
36+
ocaml-compiler: ocaml-base-compiler.5.0.0~rc1
37+
apron: false
3538

3639
# customize name to use readable string for apron instead of just a boolean
3740
# workaround for missing ternary operator: https://github.com/actions/runner/issues/409

src/cdomains/fileDomain.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct
5858

5959
let fopen k loc filename mode m =
6060
if is_unknown k m then m else
61-
let mode = match String.lowercase mode with "r" -> Val.Read | _ -> Val.Write in
61+
let mode = match String.lowercase_ascii mode with "r" -> Val.Read | _ -> Val.Write in
6262
let v = V.make k loc (Val.Open(filename, mode)) in
6363
add' k v m
6464
let fclose k loc m =

src/util/processPool.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let run ~jobs ?(terminated=fun _ _ -> ()) tasks =
2222
Unix.open_process task.command
2323
in
2424
let pid = Unix.process_pid proc in
25-
Catapult.Tracing.a_begin ~id:(string_of_int pid) "ProcessPool" ~args:[("command", `String task.command)];
25+
Catapult.Tracing.a_begin ~id:(string_of_int pid) ~cat:[] "ProcessPool" ~args:[("command", `String task.command)];
2626
Hashtbl.replace procs pid (task, proc);
2727
run tasks
2828
| [] when Hashtbl.length procs = 0 ->
@@ -36,7 +36,7 @@ let run ~jobs ?(terminated=fun _ _ -> ()) tasks =
3636
close_in proc_in;
3737
close_out proc_out;
3838
Hashtbl.remove procs pid;
39-
Catapult.Tracing.a_exit ~id:(string_of_int pid) "ProcessPool";
39+
Catapult.Tracing.a_exit ~id:(string_of_int pid) ~cat:[] "ProcessPool";
4040
terminated task status
4141
| None -> (* unrelated process *)
4242
()

0 commit comments

Comments
 (0)