Skip to content

Commit

Permalink
add -optcxx-std=c++11 when GHC >= 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dong Han committed Dec 16, 2020
1 parent aa25693 commit 61e0d6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Setup.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{-# LANGUAGE CPP #-}
import Distribution.Simple
import System.Environment

main = do
#if __GLASGOW_HASKELL__ < 810
defaultMain
#else
args <- getArgs
if head args == "configure"
then defaultMainArgs $ [ "--ghc-options", "-optcxx-std=c++11"
] ++ args
else defaultMain
else defaultMain
#endif

0 comments on commit 61e0d6a

Please sign in to comment.