Skip to content

Commit

Permalink
Bump magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
liam923 committed Jun 13, 2024
1 parent 093bf7e commit f0bbf2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/ocaml/typing/magic_numbers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module Cmi = struct
| "Caml1999I529" -> Some "5.1.1minus-14"
| "Caml1999I530" -> Some "5.1.1minus-16"
| "Caml1999I531" -> Some "5.1.1minus-17"
| "Caml1999I532" -> Some "5.1.1minus-18"
| "Caml1999I032" -> Some "5.0"
| "Caml1999I033" -> Some "5.1"
| _ -> None
Expand Down
22 changes: 11 additions & 11 deletions src/ocaml/utils/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ let version = Sys.ocaml_version

let flambda = false

let exec_magic_number = "Caml1999X531"
let exec_magic_number = "Caml1999X532"
(* exec_magic_number is duplicated in runtime/caml/exec.h *)
and cmi_magic_number =
(* When bumping this number, be sure to also update ../typing/magic_numbers.ml *)
"Caml1999I531"
and cmo_magic_number = "Caml1999O531"
and cma_magic_number = "Caml1999A531"
"Caml1999I532"
and cmo_magic_number = "Caml1999O532"
and cma_magic_number = "Caml1999A532"
and cmx_magic_number =
if flambda then
"Caml2021y532"
"Caml2021y533"
else
"Caml2021Y531"
"Caml2021Y532"
and cmxa_magic_number =
if flambda then
"Caml2021z532"
"Caml2021z533"
else
"Caml2021Z531"
"Caml2021Z532"
and ast_impl_magic_number = "Caml1999M033"
and ast_intf_magic_number = "Caml1999N033"
and cmxs_magic_number = "Caml1999D531"
and cmt_magic_number = "Caml1999T531"
and cms_magic_number = "Caml1999S531"
and cmxs_magic_number = "Caml1999D532"
and cmt_magic_number = "Caml1999T532"
and cms_magic_number = "Caml1999S532"

let interface_suffix = ref ".mli"

Expand Down

0 comments on commit f0bbf2b

Please sign in to comment.