diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-11-04 15:57:21 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-11-04 15:57:21 -0700 |
commit | 5087b05df47272658cbb318ea3c5ea079170255d (patch) | |
tree | d35878db6f0e404333f2041d53346ec8800d8b3f | |
parent | 4a98b86a78a472f57cf79d450bddf4e624456f73 (diff) | |
download | pandoc-5087b05df47272658cbb318ea3c5ea079170255d.tar.gz |
Use -O2 for windows, macos binary packages.
-rwxr-xr-x | macos/make_macos_package.sh | 2 | ||||
-rw-r--r-- | windows/make-windows-installer.bat | 2 |
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
|