Skip to content

Commit 9eceb63

Browse files
Jeffrey Youngkonsumlamm
Jeffrey Young
andauthored
fixup: rename flag, remove if-else-chain
Co-authored-by: konsumlamm <[email protected]>
1 parent 45cc38f commit 9eceb63

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

unordered-containers.cabal

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,10 @@ library
7777
MagicHash,
7878
BangPatterns
7979

80-
if flag(noMsse42)
81-
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans
82-
else
80+
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans
81+
if !flag(noMsse42) && arch(x86_64)
8382
-- only enable flag on x86
84-
if arch(i386) || arch(x86_64)
85-
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans -msse4.2
86-
else
87-
-- else, get whatever GHC gives you
88-
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans
83+
ghc-options: -msse4.2
8984

9085
-- For dumping the generated code:
9186
-- ghc-options: -ddump-simpl -ddump-stg-final -ddump-cmm -ddump-asm -ddump-to-file

0 commit comments

Comments
 (0)