File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ flag debug
42
42
description : Enable debug support
43
43
default : False
44
44
45
+ flag sse42
46
+ description : Instruct GHC to use -msse4.2. Disable this to allow
47
+ older architectures to use unordered-containers. Only relevant
48
+ for x86; expect performance regressions on newer architectures
49
+ when disabled.
50
+ default : True
51
+ manual : True
52
+
45
53
library
46
54
exposed-modules :
47
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(sse42) && 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
You can’t perform that action at this time.
0 commit comments