Skip to content

Conversation

@bnoordhuis
Copy link
Contributor

Remove the \n, it ends up as a literal "\n" in the generated .ml file
and subsequently breaks the build.

Fixes a regression introduced in commit 4597761 and resolves the
following build error:

$ make -C compiler
make: Entering directory `/home/bnoordhuis/src/js_of_ocaml/compiler'
ocamlfind ocamlopt -package findlib,str -for-pack Compiler -c
compiler_version.ml
File "compiler_version.ml", line 1, characters 17-18:
Error: Illegal character (\\)
make: *** [compiler_version.cmx] Error 2
make: Leaving directory `/home/bnoordhuis/src/js_of_ocaml/compiler'

Remove the \n, it ends up as a literal "\\n" in the generated .ml file
and subsequently breaks the build.

Fixes a regression introduced in commit 4597761 and resolves the
following build error:

    $ make -C compiler
    make: Entering directory `/home/bnoordhuis/src/js_of_ocaml/compiler'
    ocamlfind ocamlopt -package findlib,str -for-pack Compiler -c
    compiler_version.ml
    File "compiler_version.ml", line 1, characters 17-18:
    Error: Illegal character (\\)
    make: *** [compiler_version.cmx] Error 2
    make: Leaving directory `/home/bnoordhuis/src/js_of_ocaml/compiler'
hhugo added a commit that referenced this pull request Mar 19, 2014
Compiler: fix compiler_version.ml generation
@hhugo hhugo merged commit f7f9f06 into ocsigen:master Mar 19, 2014
vouillon added a commit that referenced this pull request Oct 29, 2024
vouillon added a commit to OlivierNicole/js_of_ocaml that referenced this pull request Nov 26, 2024
Some optimizations were no longer applied after the array initialization
fix in ocsigen#113. The following functions from `Js.Unsafe` were affected:
`call`, `fun_call`, `meth_call` and `new_obj`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants