Add a warning for with_lib_deps
I just spent an hour debugging a stupid bug caused by this... Signed-off-by: Jeremie Dimino <jdimino@janestreet.com>
This commit is contained in:
parent
b5dfb826ef
commit
adcf44942f
|
@ -159,7 +159,13 @@ val resolve_program
|
||||||
module Libs : sig
|
module Libs : sig
|
||||||
(** Make sure all rules produces by [f] record the library
|
(** Make sure all rules produces by [f] record the library
|
||||||
dependencies for [jbuilder external-lib-deps] and depend on the
|
dependencies for [jbuilder external-lib-deps] and depend on the
|
||||||
generation of the .merlin file. *)
|
generation of the .merlin file.
|
||||||
|
|
||||||
|
/!\ WARNING /!\: make sure the last function call inside [f] is
|
||||||
|
fully applied, otherwise the function might end up being executed
|
||||||
|
after this function has returned. Consider addin a type
|
||||||
|
annotation to make sure this doesn't happen by mistake.
|
||||||
|
*)
|
||||||
val with_lib_deps
|
val with_lib_deps
|
||||||
: t
|
: t
|
||||||
-> Lib.Compile.t
|
-> Lib.Compile.t
|
||||||
|
|
Loading…
Reference in New Issue