Add ghc-options to cabal.project.

This commit is contained in:
John MacFarlane 2019-03-27 09:36:52 -07:00
parent 03293a4ac4
commit 9e63924f28
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@ pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
SOURCEFILES?=$(shell find pandoc.hs src test -name '*.hs')
BRANCH?=master
RESOLVER?=lts-13
GHCOPTS=-fdiagnostics-color=always -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths -j +RTS -A32M -RTS
GHCOPTS=-fdiagnostics-color=always
# Later:
# -Wpartial-fields (currently used in Powerpoint writer)
# -Wmissing-export-lists (currently some Odt modules violate this)
@ -14,7 +14,7 @@ quick:
stack install --ghc-options='$(GHCOPTS)' --install-ghc --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4 --hide-successes $(TESTARGS)'
quick-cabal:
cabal new-configure . --ghc-options '$(GHCOPTS)' --flags '+embed_data_files' --enable-tests
cabal new-configure . --ghc-options '$(GHCOPTS)' --disable-optimization --enable-tests
cabal new-build . --disable-optimization
cabal new-install --symlink-bindir=$$HOME/.local/bin
cabal new-run test-pandoc --disable-optimization -- --hide-successes $(TESTARGS)

View file

@ -2,9 +2,11 @@ packages: pandoc.cabal
package pandoc
flags: +embed_data_files -trypandoc
ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths -j +RTS -A32M -RTS
package pandoc-citeproc
flags: +embed_data_files +bibutils -unicode_collation -test_citeproc -debug
ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wincomplete-uni-patterns -Werror=missing-home-modules -Widentities -Wcpp-undef -fhide-source-paths -j +RTS -A32M -RTS
source-repository-package
type: git