Skip to content

Commit

Permalink
[build] Finer linking flags, some size savings.
Browse files Browse the repository at this point in the history
This indeed seems to save 1.8 MiB of bytecode! Refs rocq-archive#18.
  • Loading branch information
ejgallego authored and Ptival committed Jul 14, 2017
1 parent 2664a92 commit ce64469
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _tags
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@
true: rectypes, thread, package(str), package(unix), package(threads)

# Sertop/Serlib general flags
true: package(sexplib), package(ppx_sexp_conv)
true: warn(+1..49-4-44), warn_error(+1..49-42), bin_annot, annot, safe_string

# This needs to go first to avoid flag precedence problems.
<sertop/sertop_protocol.ml>: package(ppx_sexp_conv)

# Serlib building options
<serlib/*.{ml,mli}>: coq_lib, coq_clib, coq_kernel, coq_library, coq_intf, coq_engine, coq_pretyping, coq_interp
<serlib/*.{ml,mli}>: coq_parsing, coq_stm, coq_proofs, coq_ltac
<serlib/*.{ml,mli}>: package(ppx_import)
<serlib/*.{ml}>: package(ppx_import), package(ppx_sexp_conv)
<serlib/*.{ml,mli}>: package(sexplib)

# Sertop building options
<serlib>: include

<sertop/*.{ml,mli}>: coq_intf
<sertop/*>: coq_config, coq_lib, coq_clib, coq_kernel, coq_vm, coq_library, coq_engine, coq_pretyping, coq_interp
<sertop/*>: coq_parsing, coq_printing, coq_tactics, coq_stm, coq_proofs, coq_toplevel, coq_hparsing, coq_ltac
<sertop/*>: package(sexplib)

# Specifip toplevel
<sertop/sertop.ml>: package(cmdliner)
Expand Down

0 comments on commit ce64469

Please sign in to comment.