You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use (preprocessor_deps) as a way to pull files (required at runtime) into _build/, and noticed the following behaviour.
When there is no (preprocess) field, (preprocessor_deps) is completely ignored.
For example, the following dune file does not trigger any error or warning (but uncommenting the (preprocess) field triggers an error if the file does not exist of course).
I think that we could detect the problem a bit more eagerly, for example by issuing an error or a warning when (preprocess_deps) is set but (preprocess) is not.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi,
I was trying to use
(preprocessor_deps)
as a way to pull files (required at runtime) into_build/
, and noticed the following behaviour.When there is no
(preprocess)
field,(preprocessor_deps)
is completely ignored.For example, the following
dune
file does not trigger any error or warning (but uncommenting the(preprocess)
field triggers an error if the file does not exist of course).(executable (name e) ;(preprocess (pps ppx_deriving.std)) (preprocessor_deps does-not-exist.txt))
I think that we could detect the problem a bit more eagerly, for example by issuing an error or a warning when
(preprocess_deps)
is set but(preprocess)
is not.What do you think?
The text was updated successfully, but these errors were encountered: