Skip to content

Commit 61e0d6a

Browse files
author
Dong Han
committed
add -optcxx-std=c++11 when GHC >= 8.10
1 parent aa25693 commit 61e0d6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Setup.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
{-# LANGUAGE CPP #-}
12
import Distribution.Simple
23
import System.Environment
34

45
main = do
6+
#if __GLASGOW_HASKELL__ < 810
7+
defaultMain
8+
#else
59
args <- getArgs
610
if head args == "configure"
711
then defaultMainArgs $ [ "--ghc-options", "-optcxx-std=c++11"
812
] ++ args
9-
else defaultMain
13+
else defaultMain
14+
#endif

0 commit comments

Comments
 (0)