Use -O2 for windows, macos binary packages.

This commit is contained in:
John MacFarlane 2017-11-04 15:57:21 -07:00
parent 4a98b86a78
commit 5087b05df4
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ stack setup
echo Building pandoc...
stack clean
stack install --stack-yaml=stack.pkg.yaml --local-bin-path $DEST/bin/ pandoc pandoc-citeproc
stack install --ghc-options="-O2" --stack-yaml=stack.pkg.yaml --local-bin-path $DEST/bin/ pandoc pandoc-citeproc
strip $DEST/bin/pandoc
strip $DEST/bin/pandoc-citeproc

View file

@ -1,5 +1,5 @@
@echo off
stack install --test --stack-yaml=..\stack.pkg.yml
stack install --test --ghc-options="-O2" --stack-yaml=..\stack.pkg.yml
if %errorlevel% neq 0 exit /b %errorlevel%
for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
%BINPATH%\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html