Skip to content

Add --enable-dev configure option + use -O3 for the compiler#1291

Open
mshinwell wants to merge 2 commits intooxcaml:mainfrom
mshinwell:add-o3-to-ocaml-dune-file
Open

Add --enable-dev configure option + use -O3 for the compiler#1291
mshinwell wants to merge 2 commits intooxcaml:mainfrom
mshinwell:add-o3-to-ocaml-dune-file

Conversation

@mshinwell
Copy link
Copy Markdown
Collaborator

This adds a new configure option called --enable-dev. The idea is that this should be specified for normal development. It builds everything with -opaque, which should be faster, together with warnings-as-errors (for both OCaml and C code). Furthermore ocamltest will be built.

When not specifying --enable-dev, this now uses -O3 to build the compiler itself (for the dune builds). Currently it seems that e.g. Closure is faster in the typechecker than Flambda 2, probably because the default optimization level for the latter is a strange intermediate state that isn't classic mode, but is lower than -O2 (we should fix this separately). This change should hopefully close that gap.

@mshinwell mshinwell added build system CI Github Actions CI changes labels Apr 6, 2023
Copy link
Copy Markdown
Contributor

@rleshchinskiy rleshchinskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to recommend --enable-dev in README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build system CI Github Actions CI changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants