diff options
author | Simão Gomes Viana | 2022-12-14 20:58:14 +0100 |
---|---|---|
committer | Simão Gomes Viana | 2022-12-14 21:00:01 +0100 |
commit | a952ca61cab514f747e2cd53f66d6f85d10274af (patch) | |
tree | 884e687b3734c2f758d136a93a49f829380653eb | |
parent | d7cf6de8cb4e5e3b3055bf55d234804f9972a3ff (diff) | |
download | aur-a952ca61cab514f747e2cd53f66d6f85d10274af.tar.gz |
Update compilers
Signed-off-by: Simão Gomes Viana <simao@halogenos.org>
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -17,7 +17,7 @@ pkgrel=1 arch=('x86_64') url="https://gitlab.com/xdevs23/linux-nitrous" license=('GPL2') -makedepends=('bison' 'clang' 'llvm' 'lld' 'xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'libelf' 'coreutils') +makedepends=('bison' 'clang>=13' 'llvm>=13' 'lld>=13' 'xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'libelf' 'coreutils' 'rust') options=('!strip') source=('git+https://gitlab.com/xdevs23/linux-nitrous.git#tag=v'"$pkgver-$pkgrel" # standard config files for mkinitcpio ramdisk @@ -33,7 +33,6 @@ clang_major_ver() { make_env_variant="" make_with_lto="make CC=clang HOSTCC=clang NM=llvm-nm AR=llvm-ar HOSTLD=ld.lld LD=ld.lld OBJCOPY=llvm-objcopy STRIP=llvm-strip" -make_without_lto="make CC=clang HOSTCC=clang" pkgver() { echo ${pkgver} @@ -46,11 +45,11 @@ prepare() { build() { cd "${_srcname}" - # On Clang 11 we *can* use LTO but we *don't* on desktop variants + # On Clang 11+ we *can* use LTO but we *don't* on desktop variants # since DKMS will have trouble with it (and even if it doesn't, # the modules won't work if you mix LTO with non-LTO) # We will use the right env anyway. - [ $(clang_major_ver) -ge 11 ] && make_env_variant="$make_with_lto" || make_env_variant="$make_without_lto" + make_env_variant="$make_with_lto" # don't run depmod on 'make install'. We'll do this ourselves in packaging sed -i '2iexit 0' scripts/depmod.sh @@ -79,7 +78,7 @@ _package() { cd "${_srcname}" - [ $(clang_major_ver) -ge 11 ] && make_env_variant="$make_with_lto" || make_env_variant="$make_without_lto" + make_env_variant="$make_with_lto" KARCH=x86 |