From 26c496d93647dd589af6c07c2273801ff7b49950 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 1 Mar 2021 10:06:10 -0800 Subject: Use -split-sections in creating release binary. This is supposed to reduce executable size. --- linux/make_artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh index 34c0bd082..f0ff00f1a 100644 --- a/linux/make_artifacts.sh +++ b/linux/make_artifacts.sh @@ -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 --ghc-options '-optc-Os -optl=-pthread' pandoc +cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-split-sections -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 -- cgit v1.2.3