-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add -optcxx-std=c++11 when GHC >= 8.10
- Loading branch information
Dong Han
committed
Dec 16, 2020
1 parent
aa25693
commit 61e0d6a
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |