diff options
author | pancho horrillo | 2021-11-30 13:36:38 +0100 |
---|---|---|
committer | pancho horrillo | 2021-11-30 13:36:38 +0100 |
commit | 98453b69b255f2c4a5c599441ef696499d2a1ac1 (patch) | |
tree | c17408657fc08d31048806be560a68b0677c36a7 | |
parent | b2c3de6638ba7abe98927c13b26f28eae0c461f1 (diff) | |
download | aur-98453b69b255f2c4a5c599441ef696499d2a1ac1.tar.gz |
Adjust LTO settings to match upstream
Cherry-picked from emacs-git¹.
[1]: https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=19b0bb93c65e8b60cffcee3de84070c1e2897263
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 3 insertions, 14 deletions
@@ -1,7 +1,7 @@ pkgbase = emacs28-git pkgdesc = GNU Emacs. emacs-28 release branch. pkgver = 28.0.60.152178 - pkgrel = 1 + pkgrel = 2 url = http://www.gnu.org/software/emacs/ install = emacs28-git.install arch = x86_64 @@ -35,8 +35,7 @@ CHECK= # Run tests. May fail, this is developement after all. CLANG= # Use clang. GOLD= # Use the gold linker. -LTO="YES" # Enable link-time optimization. Read emacs's INSTALL before - # attempting to use it with clang. +LTO= # Enable link-time optimization. Still experimental. JIT="YES" # Enable native just-in-time compilation. libgccjit is in AUR. # This compiles only performance critical elisp files. # To compile all elisp on demand, set @@ -72,7 +71,7 @@ else pkgname="emacs28-git" fi pkgver=28.0.60.152178 -pkgrel=1 +pkgrel=2 pkgdesc="GNU Emacs. emacs-28 release branch." arch=('x86_64') url="http://www.gnu.org/software/emacs/" @@ -116,16 +115,6 @@ if [[ $CLANG == "YES" ]]; then makedepends+=( 'clang' 'lld' 'llvm') ; fi -if [[ $LTO == "YES" ]]; then - if [[ $CLANG != "YES" ]]; then - CFLAGS+=" -flto -fuse-linker-plugin" - CXXFLAGS+=" -flto -fuse-linker-plugin" -else - CFLAGS+=" -flto" - CXXFLAGS+=" -flto" - fi -fi - if [[ $JIT == "YES" ]]; then if [[ $CLI == "YES" ]]; then depends_nox+=( 'libgccjit' ); |