assemblage
assemblage copied to clipboard
Keeping track of OCaml toolchain related issues
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 (onlyfile
). 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 oncmo
andcmx
files -
ocamldep
always include.
-
ocamldep
assumes that build artefacts are located in the same location as source files
ocamldep
doesn't work with symlinks or I'm crazy ?
I'm crazy. My symlinks were wrong...