Quantcast
Viewing all articles
Browse latest Browse all 521

Default flags for the project

I have two questions regarding dune build flags.

  1. what are the default (standard) flags for ocamlopt, ocamlc, js_of_ocaml

and

  1. how to set default flags for the entire project (i.e. one containing many libs and exes)

As far as I understand I need a dune file in the root with the env stanza, something like

(env
 (release
  (ocamlopt_flags (:standard -O3 -unbox-closures))))

How to add js_of_ocaml flags to it?

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles