Added 'threaded' flag.

+ GHC lacks a threaded runtime on some architectures.
  Provide a 'threaded' flag that can be disabled for compiling
  on these architectures.
+ Removed '-threaded' from pandoc's ghc-options.  '-threaded'
  is only needed for markdown2pdf, due to its use of readProcess.
This commit is contained in:
John MacFarlane 2010-04-20 22:59:38 -07:00
parent 5d9d7f32ca
commit 0d5065c1e7

View file

@ -122,6 +122,9 @@ Extra-Source-Files:
tests/RunTests.hs
Extra-Tmp-Files: man/man1/pandoc.1, man/man1/markdown2pdf.1
Flag threaded
Description: Compile markdown2pdf with -threaded option.
Default: True
Flag highlighting
Description: Compile in support for syntax highlighting of code blocks.
Default: False
@ -195,9 +198,9 @@ Executable pandoc
Hs-Source-Dirs: src
Main-Is: pandoc.hs
if impl(ghc >= 6.12)
Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind
Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
else
Ghc-Options: -O2 -Wall -threaded
Ghc-Options: -O2 -Wall
Ghc-Prof-Options: -auto-all -caf-all
Extensions: CPP
@ -214,7 +217,10 @@ Executable pandoc
Executable markdown2pdf
Hs-Source-Dirs: src
Main-Is: markdown2pdf.hs
if flag(threaded)
Ghc-Options: -Wall -threaded
else
Ghc-Options: -Wall
Ghc-Prof-Options: -auto-all
Extensions: CPP
if flag(wrappers)