Make the -fno-warn-unused-do-bind conditional on ghc >= 6.12.

This option isn't recognized by older ghcs.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1753 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2009-12-31 16:48:50 +00:00
parent 9c48ee2ad2
commit 9c54354cd7

View file

@ -194,7 +194,10 @@ Library
Other-Modules: Text.Pandoc.XML, Other-Modules: Text.Pandoc.XML,
Paths_pandoc Paths_pandoc
Extensions: CPP Extensions: CPP
if impl(ghc >= 6.12)
Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
else
Ghc-Options: -O2 -Wall
Ghc-Prof-Options: -auto-all -caf-all Ghc-Prof-Options: -auto-all -caf-all
if flag(library) if flag(library)
@ -205,7 +208,10 @@ Library
Executable pandoc Executable pandoc
Hs-Source-Dirs: src Hs-Source-Dirs: src
Main-Is: pandoc.hs Main-Is: pandoc.hs
Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -threaded if impl(ghc >= 6.12)
Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind
else
Ghc-Options: -O2 -Wall -threaded
Ghc-Prof-Options: -auto-all -caf-all Ghc-Prof-Options: -auto-all -caf-all
Extensions: CPP Extensions: CPP