diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | ZZ-lto.sh.in | 3 | ||||
-rw-r--r-- | buildenv_ext.conf | 2 | ||||
-rw-r--r-- | cflags.conf | 2 | ||||
-rw-r--r-- | compress-param_max.conf | 4 | ||||
-rw-r--r-- | debug-makeflags.conf | 4 | ||||
-rw-r--r-- | graphite.sh.in | 2 | ||||
-rw-r--r-- | ldflags.conf | 1 | ||||
-rw-r--r-- | makeflags.conf | 2 | ||||
-rw-r--r-- | mold.sh.in | 2 | ||||
-rw-r--r-- | optipng.sh.in | 2 | ||||
-rw-r--r-- | rice.sh.in | 2 | ||||
-rw-r--r-- | svgo.sh.in | 2 |
14 files changed, 40 insertions, 40 deletions
@@ -1,6 +1,6 @@ pkgbase = makepkg-optimize-mold pkgdesc = Supplemental build and packaging optimizations for makepkg - pkgver = 21 + pkgver = 22 pkgrel = 1 url = https://wiki.archlinux.org/index.php/Makepkg-optimize arch = any @@ -10,6 +10,7 @@ pkgbase = makepkg-optimize-mold optdepends = optipng: Optimize PNG files optdepends = svgo: Optimize SVG files optdepends = openmp: Parallelize loops + optdepends = polly: Polyhedral model optimization for clang optdepends = mold: a modern fast linker backup = etc/makepkg-optimize.conf source = pgo.sh.in @@ -34,25 +35,25 @@ pkgbase = makepkg-optimize-mold source = pkgopts-param_ext.conf source = compress-param_max.conf sha1sums = 4c5f0be71638a6ec2f18c01675d99f19eb6dd45d - sha1sums = d7a3801037333c582dba976db27cf8896bc1b401 - sha1sums = 3a356f52131e39f59d360c54a572d678c7208b42 - sha1sums = 77b84f9ab5ecce37af2f4dce3b94bcfe54a87b00 + sha1sums = 81547a110d9e28897e41f2f8accabb7721dbcc19 + sha1sums = 14cb27e5e45dacf8e59cfb498235036716393014 + sha1sums = 591d7cf066b01a7362caebafd68abea93cdb29c0 sha1sums = a893c32f2a3fff8b279025ec60f0c3d88143dc1e sha1sums = 9270b5e33d4508a959688a10c20dec3732763937 sha1sums = 34a33b47a8b667f9dc810737c0f598660b962d4c sha1sums = 4def44ef53ba3b579bed40af897d6f0c038ec78d - sha1sums = 2efb74a7743764205d20e0dd74fb5f948673f825 - sha1sums = 0dbba257ec59dc55583a74da0319d6c210cf717a - sha1sums = 1a4f26170da04998f9cba088a63a95fd75c1113e + sha1sums = 0022423564ed30dfe91bb3faa7f0c03ddcf4f25f + sha1sums = fbd6ee512b6486320d41a007b9670dcf5a3430b6 + sha1sums = 4d11331aeff1c1ec3de3759710acc060769ef274 sha1sums = 4cd8012f8946761d7288a198af7edb3ebaf0ece0 - sha1sums = 9cb1a46ca7c3c6fab8a44ca5355528e9eb9e0650 - sha1sums = f17b1a8ccbd807fd59fbc716cc695be32e261e38 - sha1sums = 3c61762a183a2f76cc2ff2e55cfffb68b6a8320c + sha1sums = dea4d727d81ac040846555e59ac7c34eb0978233 + sha1sums = eef21d80145bf64133206beba26fd7fab5a8f5bc + sha1sums = 2e2cd8c680a86518652543fda9092bf2ab594660 sha1sums = 981eab856abb43c5e093620cdf4d8bfa2d690805 - sha1sums = 81a662d3cf3e5fdbeb3c3e5d0b78efbacc6587d7 + sha1sums = cb14aaa95406b2a796635bcbf6936e4424e4b6d6 sha1sums = efb3ed7d7d5516259709149d7bcd6ec208c07593 sha1sums = 1fc8035e64b739e20c70fbb4eaa5cb7aa1c63c90 sha1sums = 5d0cde13b50641371e4ec4d813d6b2dfae493889 - sha1sums = 67801619b39ea4542829a4b715034a9f7ac7cf2c + sha1sums = 2f26e982500c7e799e99d150beec7b04fed99851 pkgname = makepkg-optimize-mold @@ -3,7 +3,7 @@ # Contributor: bartus ( aur\at\bartus.33mail.com ) pkgname=makepkg-optimize-mold -pkgver=21 +pkgver=22 pkgrel=1 pkgdesc='Supplemental build and packaging optimizations for makepkg' arch=('any') @@ -14,6 +14,7 @@ optdepends=("upx: Compress executables" "optipng: Optimize PNG files" "svgo: Optimize SVG files" "openmp: Parallelize loops" + "polly: Polyhedral model optimization for clang" "mold: a modern fast linker") backup=(etc/makepkg-optimize.conf) _buildenv=({pgo,graphite,rice,mold}.sh.in) @@ -25,26 +26,26 @@ source=(${_buildenv[@]} ${_tidy[@]} ${_conf[@]}) sha1sums=('4c5f0be71638a6ec2f18c01675d99f19eb6dd45d' - 'd7a3801037333c582dba976db27cf8896bc1b401' - '3a356f52131e39f59d360c54a572d678c7208b42' - '77b84f9ab5ecce37af2f4dce3b94bcfe54a87b00' + '81547a110d9e28897e41f2f8accabb7721dbcc19' + '14cb27e5e45dacf8e59cfb498235036716393014' + '591d7cf066b01a7362caebafd68abea93cdb29c0' 'a893c32f2a3fff8b279025ec60f0c3d88143dc1e' '9270b5e33d4508a959688a10c20dec3732763937' '34a33b47a8b667f9dc810737c0f598660b962d4c' '4def44ef53ba3b579bed40af897d6f0c038ec78d' - '2efb74a7743764205d20e0dd74fb5f948673f825' - '0dbba257ec59dc55583a74da0319d6c210cf717a' - '1a4f26170da04998f9cba088a63a95fd75c1113e' + '0022423564ed30dfe91bb3faa7f0c03ddcf4f25f' + 'fbd6ee512b6486320d41a007b9670dcf5a3430b6' + '4d11331aeff1c1ec3de3759710acc060769ef274' '4cd8012f8946761d7288a198af7edb3ebaf0ece0' - '9cb1a46ca7c3c6fab8a44ca5355528e9eb9e0650' - 'f17b1a8ccbd807fd59fbc716cc695be32e261e38' - '3c61762a183a2f76cc2ff2e55cfffb68b6a8320c' + 'dea4d727d81ac040846555e59ac7c34eb0978233' + 'eef21d80145bf64133206beba26fd7fab5a8f5bc' + '2e2cd8c680a86518652543fda9092bf2ab594660' '981eab856abb43c5e093620cdf4d8bfa2d690805' - '81a662d3cf3e5fdbeb3c3e5d0b78efbacc6587d7' + 'cb14aaa95406b2a796635bcbf6936e4424e4b6d6' 'efb3ed7d7d5516259709149d7bcd6ec208c07593' '1fc8035e64b739e20c70fbb4eaa5cb7aa1c63c90' '5d0cde13b50641371e4ec4d813d6b2dfae493889' - '67801619b39ea4542829a4b715034a9f7ac7cf2c') + '2f26e982500c7e799e99d150beec7b04fed99851') prepare() { # Use the current makepkg config as a base @@ -94,7 +95,7 @@ package() { # Executable finding scripts for i in ${_executable[@]%.in}; do - install -m644 -D -T ${i} ${pkgdir}/usr/share/makepkg/executable/${i//-exec.sh/.sh}; done + install -m644 -D -T ${i} ${pkgdir}/usr/share/makepkg/executable/${i//-exec.sh/.sh}; done # Supplemental Tidy scripts install -m644 -D -t ${pkgdir}/usr/share/makepkg/tidy/ ${_tidy[@]%.in} diff --git a/ZZ-lto.sh.in b/ZZ-lto.sh.in index 68d8812c13ad..6d0972cd9d39 100644 --- a/ZZ-lto.sh.in +++ b/ZZ-lto.sh.in @@ -1,7 +1,6 @@ #!/usr/bin/bash # -# ZZ-lto.sh - Compile with link-time optimization # Changed lto to lto because arch already provides the options with lto -# +# ZZ-lto.sh - Compile with link-time optimization # [[ -n "$LIBMAKEPKG_BUILDENV_LTO_SH" ]] && return diff --git a/buildenv_ext.conf b/buildenv_ext.conf index 3c00c9a30f01..dfb63a315caa 100644 --- a/buildenv_ext.conf +++ b/buildenv_ext.conf @@ -1,4 +1,4 @@ #-- pgo: Generate or utilize profile guided optimization (requires two build and install cycles) #-- {graphite,polly}: Use polyhedral model optimization (use "polly" for clang/llvm) #-- rice{,-clang}: Use extreme and unsafe optimization (use "rice-clang" for clang/llvm) -#-- mold: Use the fast mold linker (Can be used for GCC 12 or GCC 11.x (11 needs a patch), if you compile it yourself with the patch in the repo here, CLANG works without problems) +#-- mold: Use the fast mold linker diff --git a/cflags.conf b/cflags.conf index 433801db6b5f..3ff5541ba90b 100644 --- a/cflags.conf +++ b/cflags.conf @@ -1,2 +1,2 @@ -#CFLAGS="-march=native -Ofast -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -pthread -Wno-error -w" # +#CFLAGS="-march=native -Ofast -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -fopenmp -pthread -Wno-error -w" # #CFLAGS="-march=native -Og -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt" # diff --git a/compress-param_max.conf b/compress-param_max.conf index ea5cbe121586..b380d5aadc21 100644 --- a/compress-param_max.conf +++ b/compress-param_max.conf @@ -1,7 +1,7 @@ #COMPRESSGZ=(gzip -c -f -n --best) #COMPRESSBZ2=(bzip2 -c -f --best) -#COMPRESSXZ=(xz -T "$(getconf _NPROCESSORS_ONLN)" -c -z --best -) -#COMPRESSZST=(zstd -c -z -q --ultra -T0 -22 -) +#COMPRESSXZ=(xz -T0 -c -z --best -) +#COMPRESSZST=(zstd -c -z -q --ultra -22 -) #COMPRESSLRZ=(lrzip -9 -q) #COMPRESSLZO=(lzop -q --best) #COMPRESSZ=(compress -c -f) diff --git a/debug-makeflags.conf b/debug-makeflags.conf index fbdc7a5ead18..f74d3d8d1b5b 100644 --- a/debug-makeflags.conf +++ b/debug-makeflags.conf @@ -1,3 +1 @@ -#DEBUG_CFLAGS="-g" -#DEBUG_CXXFLAGS="-g" -#DEBUG_RUSTFLAGS="-C debuginfo=2" +#DEBUG_MAKEFLAGS="-j1 --debug=bvij" diff --git a/graphite.sh.in b/graphite.sh.in index 37b729f625df..88f30e39a6c6 100644 --- a/graphite.sh.in +++ b/graphite.sh.in @@ -16,6 +16,8 @@ buildenv_functions+=('buildenv_graphite') buildenv_graphite() { if check_buildoption "graphite" "y" || check_buildoption "polly" "y"; then graphiteflags=" -lgomp -mllvm -polly -mllvm -polly-num-threads=$(getconf _NPROCESSORS_ONLN) -mllvm -polly-parallel" + check_buildoption "polly" "y" && \ + graphiteflags+=" -Xclang -load -Xclang LLVMPolly.so" check_buildoption "graphite" "y" && \ graphiteflags=" -fgraphite-identity -floop-interchange -floop-nest-optimize -floop-parallelize-all -ftree-loop-distribution -ftree-parallelize-loops=$(getconf _NPROCESSORS_ONLN) -ftree-vectorize" diff --git a/ldflags.conf b/ldflags.conf index 7736456cddd9..8f8b5acd1024 100644 --- a/ldflags.conf +++ b/ldflags.conf @@ -1,2 +1 @@ #LDFLAGS="-Wl,-O4,--sort-common,--as-needed,-z,relro,-z,now,-lgomp,-lpthread" # -#LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,-z,relro -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,--sort-common -Wl,--hash-style=gnu" diff --git a/makeflags.conf b/makeflags.conf index 2590c95095ca..b4cb4048a89f 100644 --- a/makeflags.conf +++ b/makeflags.conf @@ -1 +1 @@ -# MAKEFLAGS="-j$(nproc)" +#MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN) --quiet" # diff --git a/mold.sh.in b/mold.sh.in index 5018ce53ea3c..663ad5839b04 100644 --- a/mold.sh.in +++ b/mold.sh.in @@ -18,6 +18,6 @@ buildenv_mold() { check_buildoption "mold" "y"; then CFLAGS+=" -fuse-ld=mold" CXXFLAGS+=" -fuse-ld=mold" - LDFLAGS+=" -fuse-ld=mold" +# LDFLAGS+=" -fuse-ld=mold" fi } diff --git a/optipng.sh.in b/optipng.sh.in index 344facbdd31e..d82008556b54 100644 --- a/optipng.sh.in +++ b/optipng.sh.in @@ -22,7 +22,7 @@ tidy_optipng() { [ $(jobs -p|wc -l) -gt $(getconf _NPROCESSORS_ONLN) ] && wait -n if [[ $(file --brief --mime-type "$png") = 'image/png' ]]; then { optipng "${OPTIPNGFLAGS[@]}" "$png" &>/dev/null || - warning "$(gettext "Could not optimize PNG image : %s")" "${png/$pkgdir\//}"; } & + warning "$(gettext "Could not optimize PNG image : %s")" "${png/$pkgdir\//}"; } & fi done wait diff --git a/rice.sh.in b/rice.sh.in index 933e2692165a..5946791b1394 100644 --- a/rice.sh.in +++ b/rice.sh.in @@ -17,7 +17,7 @@ buildenv_rice() { if check_buildoption "rice" "y" || check_buildoption "rice-clang" "y"; then riceflags=" -Ofast -fdata-sections -ffloat-store -fgcse-las -fgcse-sm -fmodulo-sched -fmodulo-sched-allow-regmoves -funsafe-math-optimizations -fno-threadsafe-statics -fomit-frame-pointer -fopenmp -fPIC -fshort-wchar -fvariable-expansion-in-unroller -Wno-sizeof-pointer-memaccess -pthread" # check_buildoption "rice" "y" && \ - riceflags+=" -fbranch-target-load-optimize2 -fcx-fortran-rules -fipa-pta -fno-enforce-eh-specs -fnothrow-opt -fno-var-tracking-assignments -freschedule-modulo-scheduled-loops -fsched-pressure -freg-struct-return -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns=0 -fsched2-use-superblocks -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftree-lrs -maccumulate-outgoing-args" # -fmerge-all-constants + riceflags+=" -fbranch-target-load-optimize2 -fcx-fortran-rules -fipa-pta -fno-enforce-eh-specs -fnothrow-opt -fno-var-tracking-assignments -freg-struct-return -freschedule-modulo-scheduled-loops -fsched-pressure -fsched-spec-load -fsched-spec-load-dangerous -fsched-stalled-insns=0 -fsched2-use-superblocks -fselective-scheduling -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftree-lrs -maccumulate-outgoing-args" # -fmerge-all-constants riceldflags=" -lpthread -lgomp" # -shared CFLAGS+="$riceflags" diff --git a/svgo.sh.in b/svgo.sh.in index 5faf42e424e7..9b306236ba1a 100644 --- a/svgo.sh.in +++ b/svgo.sh.in @@ -22,7 +22,7 @@ tidy_svgo() { [ $(jobs -p|wc -l) -gt $(getconf _NPROCESSORS_ONLN) ] && wait -n if [[ $(file --brief --mime-type "$svg") = 'image/svg' ]]; then { svgo "${SVGOFLAGS[@]}" "$svg" &>/dev/null || - warning "$(gettext "Could not optimize SVG image : %s")" "${svg/$pkgdir\//}"; } & + warning "$(gettext "Could not optimize SVG image : %s")" "${svg/$pkgdir\//}"; } & fi done wait |