File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ flag debug
42
42
description : Enable debug support
43
43
default : False
44
44
45
+ flag no-msse4.2
46
+ description : Instruct GHC to *not* use -msse4.2. Typical use is for older
47
+ architectures to use unordered-containers. Expect performance
48
+ regressions on newer architectures.
49
+ default : False
50
+
51
+
45
52
library
46
53
exposed-modules :
47
54
Data.HashMap.Internal
@@ -69,7 +76,15 @@ library
69
76
MagicHash,
70
77
BangPatterns
71
78
72
- ghc-options : -Wall -O2 -fwarn-tabs -ferror-spans
79
+ if flag(no-msse4.2)
80
+ ghc-options : -Wall -O2 -fwarn-tabs -ferror-spans
81
+ else
82
+ -- only enable flag on x86
83
+ if arch(i386) || arch(x86_64)
84
+ ghc-options : -Wall -O2 -fwarn-tabs -ferror-spans -msse4.2
85
+ else
86
+ -- else, get whatever GHC gives you
87
+ ghc-options : -Wall -O2 -fwarn-tabs -ferror-spans
73
88
74
89
-- For dumping the generated code:
75
90
-- 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