mirror of https://github.com/lapce/lapce.git
fix linking + use clang
This commit is contained in:
parent
a409eff41f
commit
2066aeae65
|
@ -8,7 +8,7 @@ URL: https://github.com/lapce/lapce
|
||||||
VCS: {{{ git_dir_vcs }}}
|
VCS: {{{ git_dir_vcs }}}
|
||||||
Source: {{{ git_dir_pack }}}
|
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
|
%description
|
||||||
Lapce is written in pure Rust with a UI in Druid (which is also written in Rust).
|
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 }}}
|
{{{ git_dir_setup_macro }}}
|
||||||
|
|
||||||
%build
|
%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
|
||||||
install -Dm755 target/release-lto/lapce %{buildroot}%{_bindir}/lapce
|
install -Dm755 target/release-lto/lapce %{buildroot}%{_bindir}/lapce
|
||||||
|
|
Loading…
Reference in New Issue