Cannot find Flambda report files

I cannot find where Flambda inlining reports are generated. The documentation is quite vague with respect to where should I find them… this is how I use Flambda (lib/dune):

(env
 (release
  (ocamlopt_flags
   (:standard -O3 -inlining-report))))

However, find _build | grep inlining shows nothing after dune build --release. What am I doing wrong?

Although I guess find should also find them, so there might be another issue.

Yes, I’ve seen this answer, but I still have no clue why the files are not generated. Also, it seems that files for bin/ are generated, if I specify -inlining-report in bin/dune. So the issue seems to be for library only.

Check in _build/log whether there are any lines with -inlining-report. If not, either something has overwritten the ocamlopt flags or dune didn’t recompile the files in question.

I can no longer reproduce my issue. Now I see the inlining files in _build/default/lib/.test.objs/native/, as expected.