Skip to content

Commit 3244386

Browse files
authored
flambda-backend: Bump magic numbers (oxcaml#1077)
1 parent 7c9e15d commit 3244386

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

boot/ocamlc

44 Bytes
Binary file not shown.

boot/ocamllex

0 Bytes
Binary file not shown.

runtime/caml/exec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct exec_trailer {
6060

6161
/* Magic number for this release */
6262

63-
#define EXEC_MAGIC "Caml1999X031"
63+
#define EXEC_MAGIC "Caml1999X500"
6464

6565
#endif /* CAML_INTERNALS */
6666

utils/config.mlp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,29 @@ let stack_allocation = %%STACK_ALLOCATION%%
9797
let poll_insertion = %%POLL_INSERTION%%
9898

9999
(* When artifacts are incompatible with upstream OCaml, ocaml-jst uses
100-
magic numbers ending in 5xx. (The AST and bytecode executables remain
100+
magic numbers ending in 5xx. (The AST remains
101101
compatible, so use upstream numbers) *)
102-
let exec_magic_number = "Caml1999X031"
102+
let exec_magic_number = "Caml1999X500"
103103
(* exec_magic_number is duplicated in runtime/caml/exec.h *)
104-
and cmi_magic_number = "Caml1999I500"
105-
and cmo_magic_number = "Caml1999O500"
106-
and cma_magic_number = "Caml1999A500"
104+
and cmi_magic_number = "Caml1999I501"
105+
and cmo_magic_number = "Caml1999O501"
106+
and cma_magic_number = "Caml1999A501"
107107
and cmx_magic_number =
108108
if flambda || flambda2 then
109-
"Caml2021y502"
109+
"Caml2021y503"
110110
else
111-
"Caml2021Y502"
111+
"Caml2021Y503"
112112
and cmxa_magic_number =
113113
if flambda || flambda2 then
114-
"Caml2021z502"
114+
"Caml2021z503"
115115
else
116-
"Caml2021Z502"
116+
"Caml2021Z503"
117117
and ast_impl_magic_number = "Caml1999M031"
118118
and ast_intf_magic_number = "Caml1999N031"
119-
and cmxs_magic_number = "Caml1999D501"
120-
and cmt_magic_number = "Caml1999T500"
121-
and linear_magic_number = "Caml1999L500"
122-
and cfg_magic_number = "Caml2021G500"
119+
and cmxs_magic_number = "Caml1999D502"
120+
and cmt_magic_number = "Caml1999T501"
121+
and linear_magic_number = "Caml1999L501"
122+
and cfg_magic_number = "Caml2021G501"
123123

124124
let interface_suffix = ref ".mli"
125125

0 commit comments

Comments
 (0)