Skip to content

Commit

Permalink
build src/* as a private library
Browse files Browse the repository at this point in the history
  • Loading branch information
leque committed Mar 12, 2019
1 parent 6137f5c commit 0943496
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 74 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*.out
*.html
obsolete/*.txt
bin/
old/
test/
*.png
Expand Down
6 changes: 6 additions & 0 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(executable
(name satysfi)
(public_name satysfi)
(libraries main)
(preprocess no_preprocessing)
)
1 change: 1 addition & 0 deletions bin/satysfi.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = Main.main ()
63 changes: 0 additions & 63 deletions src/backend/base85.ml

This file was deleted.

3 changes: 1 addition & 2 deletions src/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(executable
(library
(name main)
(public_name satysfi)
(flags (-w -3 -bin-annot -thread -unsafe-string))
(libraries str
batteries
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ let setup_root_dirs () =
| _ :: _ -> Config.initialize ds


let () =
let main () =
error_log_environment (fun () ->
let curdir = Sys.getcwd () in
Arg.parse (arg_spec_list curdir) (handle_anonimous_arg curdir) "";
Expand Down
8 changes: 1 addition & 7 deletions src/frontend/main.mli
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
open Types
open Typeenv
(*
val main : Typeenv.t -> environment -> string list -> string -> unit
val error_log_environment : (unit -> unit) -> unit
*)
val main : unit -> unit

0 comments on commit 0943496

Please sign in to comment.