fix linking + use clang

This commit is contained in:
Simon Gardling 2022-07-16 19:39:41 -04:00
parent a409eff41f
commit 2066aeae65
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ URL: https://github.com/lapce/lapce
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
BuildRequires: cargo perl-FindBin cairo-devel cairo-gobject-devel atk-devel gdk-pixbuf2-devel pango-devel gtk3-devel gcc g++ perl-lib perl-File-Compare mold
BuildRequires: cargo perl-FindBin cairo-devel cairo-gobject-devel atk-devel gdk-pixbuf2-devel pango-devel gtk3-devel perl-lib perl-File-Compare mold clang
%description
Lapce is written in pure Rust with a UI in Druid (which is also written in Rust).
@ -18,7 +18,7 @@ It is designed with Rope Science from the Xi-Editor which makes for lightning-fa
{{{ git_dir_setup_macro }}}
%build
RUSTFLAGS="-C link-arg=-fuse-ld=/usr/bin/mold" cargo build --profile release-lto
RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=mold" cargo build --profile release-lto
%install
install -Dm755 target/release-lto/lapce %{buildroot}%{_bindir}/lapce