chore(cabal): explain performance related build flags
These flags were added in 9f97147cc3. Adding
a comment to clarify the use.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
committed by
Steve Chavez
parent
9f97147cc3
commit
242e5ba87e
@@ -179,6 +179,9 @@ library
|
|||||||
else
|
else
|
||||||
ghc-options: -O2
|
ghc-options: -O2
|
||||||
if impl(ghc >= 9.12)
|
if impl(ghc >= 9.12)
|
||||||
|
-- Makes GHC consider cross-module specialization for polymorphic functions
|
||||||
|
-- without explicitly needing to add INLINE, INLINABLE or SPECIALIZE pragmas.
|
||||||
|
-- Slightly increases the binary size but improves performance considerably.
|
||||||
ghc-options: -fexpose-overloaded-unfoldings -fspecialise-aggressively
|
ghc-options: -fexpose-overloaded-unfoldings -fspecialise-aggressively
|
||||||
|
|
||||||
if !os(windows)
|
if !os(windows)
|
||||||
|
|||||||
Reference in New Issue
Block a user