We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 259dc9e commit 13070e4Copy full SHA for 13070e4
unordered-containers.cabal
@@ -42,6 +42,14 @@ flag debug
42
description: Enable debug support
43
default: False
44
45
+flag noSse42
46
+ description: Instruct GHC to *not* use -msse4.2. Typical use case is to allow
47
+ older architectures to use unordered-containers. Only relevant
48
+ for x86; expect performance regressions on newer architectures
49
+ when enabled.
50
+ default: False
51
+
52
53
library
54
exposed-modules:
55
Data.HashMap.Internal
@@ -70,6 +78,9 @@ library
70
78
BangPatterns
71
79
72
80
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans
81
+ if !flag(noSse42) && arch(x86_64)
82
+ -- only enable flag on x86
83
+ ghc-options: -msse4.2
73
84
74
85
-- For dumping the generated code:
75
86
-- ghc-options: -ddump-simpl -ddump-stg-final -ddump-cmm -ddump-asm -ddump-to-file
0 commit comments