Merge pull request #531 from rgrinberg/ocamldep-multi-stanza
Multi stanza in 1 jbuild build failure
This commit is contained in:
commit
41693ae6f9
|
@ -348,3 +348,13 @@
|
|||
(progn
|
||||
(run ${exe:cram.exe} -ocamlv ${ocaml_version} -skip-versions 4.02.3 run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
(deps ((files_recursively_in test-cases/ocamldep-multi-stanzas)))
|
||||
(action
|
||||
(chdir test-cases/ocamldep-multi-stanzas
|
||||
(setenv JBUILDER ${bin:jbuilder}
|
||||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
(jbuild_version 1)
|
||||
|
||||
(library
|
||||
((name lib)
|
||||
(modules (:standard \ test))))
|
||||
|
||||
(executable
|
||||
((name test)
|
||||
(libraries (lib))))
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "foo bar"
|
|
@ -0,0 +1,5 @@
|
|||
$ $JBUILDER exec ./test.exe -j1 --debug-dep --display short --root .
|
||||
Multiple rules generated for _build/default/lib.o:
|
||||
- <internal location>
|
||||
- <internal location>
|
||||
[1]
|
|
@ -0,0 +1 @@
|
|||
Lib.run ();;
|
Loading…
Reference in New Issue