Skip to content

Commit

Permalink
Merge 5.2.0minus 2 (#112)
Browse files Browse the repository at this point in the history
* Import ocaml sources for ocaml-flambda/flambda-backend@8a585cf242

* Update magic numbers
  • Loading branch information
liam923 authored and d-kalinichenko committed Nov 8, 2024
1 parent 90706c3 commit 1052311
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 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 @@ -57,6 +57,7 @@ module Cmi = struct
| "Caml1999I034" -> Some "5.2"
| "Caml1999I550" -> Some "5.2.0minus-0"
| "Caml1999I551" -> Some "5.2.0minus-1"
| "Caml1999I552" -> Some "5.2.0minus-2"
| _ -> None

let () = assert (to_version_opt Config.cmi_magic_number <> None)
Expand Down
12 changes: 6 additions & 6 deletions src/ocaml/utils/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
let version = Sys.ocaml_version

(* When bumping this number, be sure to also update ../typing/magic_numbers.ml *)
let cmi_magic_number = "Caml1999I551"
let cmi_magic_number = "Caml1999I552"

let ast_impl_magic_number = "Caml1999M551"
let ast_intf_magic_number = "Caml1999N551"
let cmt_magic_number = "Caml1999T551"
let cms_magic_number = "Caml1999S551"
let index_magic_number = "Merl2023I501"
let ast_impl_magic_number = "Caml1999M552"
let ast_intf_magic_number = "Caml1999N552"
let cmt_magic_number = "Caml1999T552"
let cms_magic_number = "Caml1999S552"
let index_magic_number = "Merl2023I552"

let interface_suffix = ref ".mli"

Expand Down
2 changes: 1 addition & 1 deletion upstream/ocaml_flambda/base-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
69c04271e033a9c4420b2391b9e77427bf3c0c9a
8a585cf2429644141a48bd23db7b237b20360938
28 changes: 14 additions & 14 deletions upstream/ocaml_flambda/configure
Original file line number Diff line number Diff line change
Expand Up @@ -3335,39 +3335,39 @@ OCAML_VERSION_SHORT=5.2

printf "%s\n" "#define MAGIC_NUMBER_PREFIX \"Caml1999\"" >>confdefs.h

printf "%s\n" "#define MAGIC_NUMBER_VERSION \"551\"" >>confdefs.h
printf "%s\n" "#define MAGIC_NUMBER_VERSION \"552\"" >>confdefs.h

MAGIC_NUMBER_LENGTH=12

printf "%s\n" "#define EXEC_MAGIC_LENGTH 12" >>confdefs.h

printf "%s\n" "#define EXEC_FORMAT \"X\"" >>confdefs.h

EXEC_MAGIC_NUMBER=Caml1999X551
EXEC_MAGIC_NUMBER=Caml1999X552

CMI_MAGIC_NUMBER=Caml1999I551
CMI_MAGIC_NUMBER=Caml1999I552

CMO_MAGIC_NUMBER=Caml1999O551
CMO_MAGIC_NUMBER=Caml1999O552

CMA_MAGIC_NUMBER=Caml1999A551
CMA_MAGIC_NUMBER=Caml1999A552

CMX_MAGIC_NUMBER=Caml1999Y551
CMX_MAGIC_NUMBER=Caml1999Y552

CMXA_MAGIC_NUMBER=Caml1999Z551
CMXA_MAGIC_NUMBER=Caml1999Z552

AST_IMPL_MAGIC_NUMBER=Caml1999M551
AST_IMPL_MAGIC_NUMBER=Caml1999M552

AST_INTF_MAGIC_NUMBER=Caml1999N551
AST_INTF_MAGIC_NUMBER=Caml1999N552

CMXS_MAGIC_NUMBER=Caml1999D551
CMXS_MAGIC_NUMBER=Caml1999D552

CMT_MAGIC_NUMBER=Caml1999T551
CMT_MAGIC_NUMBER=Caml1999T552

CMS_MAGIC_NUMBER=Caml1999S551
CMS_MAGIC_NUMBER=Caml1999S552

CFG_MAGIC_NUMBER=Caml1999G551
CFG_MAGIC_NUMBER=Caml1999G552

LINEAR_MAGIC_NUMBER=Caml1999L551
LINEAR_MAGIC_NUMBER=Caml1999L552



Expand Down

0 comments on commit 1052311

Please sign in to comment.