Re-add -optc-Os to static linux build, because it makes binary smaller.

This commit is contained in:
John MacFarlane 2020-11-18 19:02:04 -08:00
parent 2002481aee
commit 7fa4d367bb

View file

@ -16,7 +16,7 @@ ghc --version
cabal v2-update
cabal v2-clean
cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static pandoc
cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-optc-Os -optl=-pthread' pandoc
cabal v2-build
cabal v2-test -j1
for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done