This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
Runtime dependencies for running cinaps
|
||||
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 3.5)
|
||||
> (using cinaps 1.1)
|
||||
> EOF
|
||||
|
||||
$ cat > foo <<EOF
|
||||
> hello world
|
||||
> EOF
|
||||
|
||||
$ cat > dune <<EOF
|
||||
> (cinaps
|
||||
> (files *.ml)
|
||||
> (runtime_deps foo))
|
||||
> EOF
|
||||
|
||||
$ cat > test.ml <<EOF
|
||||
> (*$ let f = open_in "foo" in print_endline (input_line f); close_in f *)
|
||||
> (*$*)
|
||||
> EOF
|
||||
|
||||
$ dune build @cinaps --auto-promote
|
||||
File "test.ml", line 1, characters 0-0:
|
||||
Error: Files _build/default/test.ml and
|
||||
_build/default/test.ml.cinaps-corrected differ.
|
||||
Promoting _build/default/test.ml.cinaps-corrected to test.ml.
|
||||
[1]
|
||||
$ cat test.ml
|
||||
(*$ let f = open_in "foo" in print_endline (input_line f); close_in f *)hello world
|
||||
Loading…
Add table
Add a link
Reference in a new issue