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:
parent
9c48ee2ad2
commit
9c54354cd7
1 changed files with 8 additions and 2 deletions
|
@ -194,7 +194,10 @@ Library
|
|||
Other-Modules: Text.Pandoc.XML,
|
||||
Paths_pandoc
|
||||
Extensions: CPP
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue