This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,11 @@
(executable
(name a)
(modules a)
;(preprocess (pps ppx_deriving.std))
(preprocessor_deps does-not-exist.txt))
(library
(name b)
(modules b)
(preprocess future_syntax)
(preprocessor_deps does-not-exist.txt))

View file

@ -0,0 +1,26 @@
`preprocessor_deps` is provided without `preprocess` and is ignored.
Should warn.
$ touch a.ml b.ml
$ echo "(lang dune 1.11)" > dune-project
$ dune build
File "dune", line 5, characters 1-39:
5 | (preprocessor_deps does-not-exist.txt))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning: This preprocessor_deps field will be ignored because no preprocessor
that might use them is configured.
File "dune", line 11, characters 1-39:
11 | (preprocessor_deps does-not-exist.txt))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning: This preprocessor_deps field will be ignored because no preprocessor
that might use them is configured.
$ echo "(lang dune 2.0)" > dune-project
$ dune build
File "dune", line 5, characters 1-39:
5 | (preprocessor_deps does-not-exist.txt))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: This preprocessor_deps field will be ignored because no preprocessor
that might use them is configured.
[1]