malfunction icon indicating copy to clipboard operation
malfunction copied to clipboard

The -opaque flag

Open ziman opened this issue 4 years ago • 0 comments

If I change the implementation of module X but not its interface, it would be nice to not have to recompile all modules (transitively) depending on X. With ocamlopt, this can be achieved using -opaque, which will disable cross-module optimisations (with the obvious tradeoffs). It would be nice to have that option for Malfunction, too.

This would make the compile-test loop faster and more convenient for large projects, where you're usually fiddling with only a small number of modules. It would avoid unnecessarily triggering full rebuilds if you are editing the implementation of a module at the top of the dependency hierarchy.

ziman avatar Sep 20 '20 18:09 ziman