summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-12 19:59:47 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-12 19:59:47 +0100
commit7b6273362abb1ba4dea8f6cd6e4d186c4397ffac (patch)
tree498ebc6d830e304284137d6b5c548c600d8ce66f
parent1e694805a1d6ea8ddccf0e2f8a71d7b91819f880 (diff)
pandoc.cabal: use cpphs if embed_data_files and darwin.
-rw-r--r--pandoc.cabal3
1 files changed, 3 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 3f736884b..1b834365c 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -320,6 +320,9 @@ Library
cpp-options: -DEMBED_DATA_FILES
Build-Tools: hsb2hs >= 0.3.1
other-modules: Text.Pandoc.Data
+ if os(darwin)
+ Build-Tools: cpphs >= 1.19
+ ghc-options: -pgmP cpphs -optP --cpp
if os(windows)
Cpp-options: -D_WINDOWS
Ghc-Options: -Wall -fno-warn-unused-do-bind