Skip to content

Commit 1c7c6cb

Browse files
committed
Enable eager blackholing
While usually this is merely an optimization in parallel settings, in our case it's absolutely essential for correctness due to the use of internal mutability. See #147.
1 parent 76f3b97 commit 1c7c6cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unordered-containers.cabal

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ library
5050
ghc-options: -Wall -O2
5151
if impl(ghc >= 6.8)
5252
ghc-options: -fwarn-tabs
53+
if impl(ghc >= 6.12)
54+
-- This is absolutely essential for correctness due to the
55+
-- referential-transparency-breaking mutability in unsafeInsertWith. See
56+
-- #147 and GHC #13615 for details.
57+
ghc-options: -feager-blackholing
5358
if flag(debug)
5459
cpp-options: -DASSERTS
5560

0 commit comments

Comments
 (0)