OCaml compiler .cmt/.cmi and Dune cache invalidation on compiler flag changes
OCaml compiler emits .cmi and .cmt files that capture type information for later reuse. Dune orchestrates builds and reuses compiled .cmo and metadata artifacts based on source file timestamps and content. The integration boundary is unclear when compiler options such as -I include paths, -ccopt, or -g change. Dune currently does not treat flag changes as de