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,7 @@
(executable
(name test)
(libraries impl))
(alias
(name default)
(action (run ./test.exe)))

View file

@ -0,0 +1,3 @@
(library
(name impl)
(implements bar))

View file

@ -0,0 +1,2 @@
let foo () =
print_endline "foo"

View file

@ -0,0 +1,2 @@
(executable
(name mypp))

View file

@ -0,0 +1,6 @@
let () =
let file = Sys.argv.(1) in
let ic = open_in file in
let len = in_channel_length ic in
let contents = really_input_string ic len in
print_string contents

View file

@ -0,0 +1,3 @@
Virtual libraries and preprocessed source
$ dune build
foo

View file

@ -0,0 +1,4 @@
(library
(name bar)
(virtual_modules foo)
(preprocess (action (run %{project_root}/pp/mypp.exe %{input-file}))))