Fix bug introduced in commit 15830 (for #6468): caml_init_code_fragments also needs to be called in case of 'ocamlc -custom'. One should really think about sharing code between caml_main and caml_startup_code.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16077 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Alain Frisch 2015-05-05 14:16:22 +00:00
parent a2c6ac8110
commit 311799dbf5
1 changed files with 1 additions and 0 deletions

View File

@ -419,6 +419,7 @@ CAMLexport void caml_startup_code(
caml_start_code = code;
caml_code_size = code_size;
caml_init_code_fragments();
caml_init_debug_info();
if (caml_debugger_in_use) {
int len, i;
len = code_size / sizeof(opcode_t);