Commit 5ebc35e2 authored by Moritz Kiefer's avatar Moritz Kiefer

Document that Cabal passes -O2 to C compilers

parent 3da83a09
......@@ -980,6 +980,8 @@ Miscellaneous options
if the compiler supports it. Level 2 is likely to lead to longer
compile times and bigger generated code.
When optimizations are enabled, Cabal passes ``-O2`` to the C compiler.
.. option:: --disable-optimization
Build without optimization. This is suited for development: building
......
......@@ -967,6 +967,8 @@ feature was added.
planning to run code, turning off optimization will lead to better
build times and less code to be rebuilt when a module changes.
When optimizations are enabled, Cabal passes ``-O2`` to the C compiler.
We also accept ``True`` (equivalent to 1) and ``False`` (equivalent
to 0).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment