-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
326e2f5
commit 4993c6b
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(executable | ||
((name main))) | ||
|
||
(rule | ||
((targets (main.ml)) | ||
(deps ((glob_files optional.ml) | ||
(glob_files *optional.ml))) | ||
(action | ||
(with-stdout-to ${@} | ||
(run echo "let () = print_endline \"Hello World\""))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$ $JBUILDER exec ./main.exe --root . -j1 --display short | ||
File "jbuild", line 1, characters 0-124: | ||
Warning: Directory _build/default doesn't exist. | ||
File "jbuild", line 1, characters 0-89: | ||
Warning: Directory _build/default doesn't exist. | ||
echo main.ml | ||
ocamldep main.ml.d | ||
ocamlc .main.eobjs/main.{cmi,cmo,cmt} | ||
ocamlopt .main.eobjs/main.{cmx,o} | ||
ocamlopt main.exe | ||
Hello World |