Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buck2 ocaml ide output: enable
--show-output
and be more consistent
Summary: ## What Use `DefaultInfo` instead of a custom provider type for the `.cmt` and `.cmti` files we produce for IDE support. ## Why D52840634 introduced the ability to build IDE outputs without linking, but had the following downsides: - `--show-output` and `--show-full-output` didn't show anything for IDE targets, which impaired debuggability - (warning: long explanation, skippable:) I didn't make the change to use `OCamlIdeInfo` all OCaml rules, which was inconsistent and probably didn't avoid all linking. When I did try to make the change for all OCaml IDE rules, the expected .cmt files were not generated. I suspect a target needs to have a default_output in order for this line of our BXL for generating build artifacts to do anything: https://www.internalfb.com/code/fbsource/[3905ae9c88fb4245b97cbac20c5a387c1f816655]/fbcode/common/ocaml/gen_merlin.bxl?lines=18-21 Reviewed By: ndmitchell Differential Revision: D52952776 fbshipit-source-id: 9409ef710d6f4def1a7a4ed5ebf280850fa4d169
- Loading branch information