aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 16:48:50 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 16:48:50 +0000
commit9c54354cd74dd960c3a6b5c920e52dce89c4f2fe (patch)
tree3a62be1e8807f8a5aea729705f6e677e8a050c78
parent9c48ee2ad2466ef6fdba0f01c7a821c483ccc18b (diff)
downloadpandoc-9c54354cd74dd960c3a6b5c920e52dce89c4f2fe.tar.gz
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
-rw-r--r--pandoc.cabal10
1 files changed, 8 insertions, 2 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 591f62dd7..0c9458aac 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -194,7 +194,10 @@ Library
Other-Modules: Text.Pandoc.XML,
Paths_pandoc
Extensions: CPP
- Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ if impl(ghc >= 6.12)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ else
+ Ghc-Options: -O2 -Wall
Ghc-Prof-Options: -auto-all -caf-all
if flag(library)
@@ -205,7 +208,10 @@ Library
Executable pandoc
Hs-Source-Dirs: src
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
Extensions: CPP