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
4242 description : Enable debug support
4343 default : False
4444
45+ flag sse42
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 : True
51+ manual : True
52+
4553library
4654 exposed-modules :
4755 Data.HashMap.Internal
@@ -70,6 +78,9 @@ library
7078 BangPatterns
7179
7280 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
7384
7485 -- For dumping the generated code:
7586 -- 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