Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 540

What compilation flags does Dune use by default?

$
0
0

Heya!

I’m trying to understand what compilation flags dune runs with by default. I know we can set up envs like this

(env
 (dev
  (flags (:standard -w +42)))
 (release
  (ocamlopt_flags (:standard -O3))))

and then run dune build --profile release for it to run optimized. I wonder though, if I just run dune build without adding any env or flags, does it do any optimization whatsover then?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 540

Trending Articles