Le 21-01-14 12:31:46, Christophe Raffalli a écrit : > > Hello > > I try to inline some module application. It works when > I compile with ocamlopt or ocamlc manually: > > ocamlopt -w a -warn-error a mat.ml test.ml > > But fails using dune: > > dune build Found the problem: dune is compiling with -opaque ... but could not find yet how to remove this option! > gives this error without flambda: > > File "test.ml", line 12, characters 18-52: > 12 | module FloatMat = Mat.Make [@inlined always] (Float) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Error (warning 55): Cannot inline: Unknown function > > and this error with flambda: > > File "test.ml", line 12, characters 18-52: > 12 | module FloatMat = Mat.Make [@inlined always] (Float) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Error (warning 55): Cannot inline: [@inlined] attribute was not used on this function application (the optimizer did not know what function was being applied) >