This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(menhir (modules a))
|
||||
|
||||
(library
|
||||
(name bar)
|
||||
(public_name bar))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(lang dune 1.0)
|
||||
(using menhir 1.0)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
(name foo)
|
||||
(package foo))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1 @@
|
|||
print_endline "Hello, world!"
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
Various regression tests fixed by ocaml/dune#992
|
||||
|
||||
Interaction of (menhir ...) and -p
|
||||
----------------------------------
|
||||
|
||||
This used to fail because dune couldn't associate a compilation
|
||||
context to the menhir files when package bar was hidden.
|
||||
|
||||
$ (cd menhir-and-dash-p && dune build -p foo)
|
||||
|
||||
package field without public_name field
|
||||
---------------------------------------
|
||||
|
||||
This used to fail because the parser for the "package" field when
|
||||
there is no "public_name"/"public_names" field used to not parse the
|
||||
argument of "package".
|
||||
|
||||
$ (cd package-without-pub-name && dune build -p foo)
|
||||
File "dune", line 3, characters 1-14:
|
||||
3 | (package foo))
|
||||
^^^^^^^^^^^^^
|
||||
Error: This field is useless without a (public_name ...) field.
|
||||
[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue