pandoc.cabal: use cpphs if embed_data_files and darwin.
commit7b6273362abb1ba4dea8f6cd6e4d186c4397ffac
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 12 Feb 2017, 19:59 (10 years ago)
parent1e69480
pandoc.cabal+3
@@ -320,6 +320,9 @@ Library
320320 cpp-options: -DEMBED_DATA_FILES
321321 Build-Tools: hsb2hs >= 0.3.1
322322 other-modules: Text.Pandoc.Data
323+ if os(darwin)
324+ Build-Tools: cpphs >= 1.19
325+ ghc-options: -pgmP cpphs -optP --cpp
323326 if os(windows)
324327 Cpp-options: -D_WINDOWS
325328 Ghc-Options: -Wall -fno-warn-unused-do-bind