assemblage icon indicating copy to clipboard operation
assemblage copied to clipboard

Keeping track of OCaml toolchain related issues

Open samoht opened this issue 10 years ago • 2 comments

This is just a place to hold the various issues I've found while trying to integrate with the OCaml toolchain.

Pre-processors

  • no option in the compiler to dump the parsetree. workaround: https://github.com/samoht/ocaml-dumpast
  • no option in camlp4 to output the dumped AST in a file (other than redirecting stdout)
  • the -impl file is not passed properly to the preprocessor (only file). workaround: separate pre-processing and compile phases

ocamlfind

  • ocamlfind duplicates some output: workaround: https://github.com/samoht/assemblage/blob/master/lib/as_ocamlfind.ml#L59
  • missing query P1 P2 -X P3 option in ocamlfind. workaround: none

ocamldep

  • ocamldep -sort does not work on cmo and cmx files
  • ocamldep always include .
  • ocamldep assumes that build artefacts are located in the same location as source files

samoht avatar Aug 13 '14 09:08 samoht

ocamldep doesn't work with symlinks or I'm crazy ?

dbuenzli avatar Aug 24 '14 18:08 dbuenzli

I'm crazy. My symlinks were wrong...

dbuenzli avatar Aug 24 '14 18:08 dbuenzli