aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-04 15:57:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-04 15:57:21 -0700
commit5087b05df47272658cbb318ea3c5ea079170255d (patch)
treed35878db6f0e404333f2041d53346ec8800d8b3f
parent4a98b86a78a472f57cf79d450bddf4e624456f73 (diff)
downloadpandoc-5087b05df47272658cbb318ea3c5ea079170255d.tar.gz
Use -O2 for windows, macos binary packages.
-rwxr-xr-xmacos/make_macos_package.sh2
-rw-r--r--windows/make-windows-installer.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/macos/make_macos_package.sh b/macos/make_macos_package.sh
index 7cdc42e0c..4dd746a7c 100755
--- a/macos/make_macos_package.sh
+++ b/macos/make_macos_package.sh
@@ -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
diff --git a/windows/make-windows-installer.bat b/windows/make-windows-installer.bat
index 1517e9bf9..15d97d9d2 100644
--- a/windows/make-windows-installer.bat
+++ b/windows/make-windows-installer.bat
@@ -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