diff options
author | Mark Wagie | 2024-05-09 13:11:49 -0600 |
---|---|---|
committer | Mark Wagie | 2024-05-09 13:11:49 -0600 |
commit | c471b61e1e704e80ec7db2502e69daca94419c3b (patch) | |
tree | b04337ab303a8ed9e7549faa6ce3f47e666bede6 | |
parent | 23b2a30726012172f4458d82d0a690baf88c8e7a (diff) | |
download | aur-cosmic-workspaces-git.tar.gz |
use mold linker
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 1 deletions
@@ -9,6 +9,7 @@ pkgbase = cosmic-workspaces-git license = GPL-3.0-or-later makedepends = cargo makedepends = git + makedepends = mold depends = libinput depends = libxkbcommon depends = mesa @@ -16,6 +16,7 @@ depends=( makedepends=( 'cargo' 'git' + 'mold' ) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") @@ -38,7 +39,12 @@ build() { cd cosmic-workspaces-epoch export CARGO_HOME="$srcdir/cargo-home" export RUSTUP_TOOLCHAIN=stable - make prefix='/usr' VENDOR='1' all + + # use mold instead of lld to speed up build + RUSTFLAGS="-C link-arg=-fuse-ld=mold" + + # use nice to build with lower priority + nice make prefix='/usr' VENDOR='1' all } package() { |