Skip to content

Commit

Permalink
fix(anda): …no mold?
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Sep 27, 2024
1 parent a1c7f03 commit 16e3beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anda/tools/buildsys/anda/rust-anda.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by rust2rpm 22
%bcond_without check
%global with_mold 0
%global build_rustflags -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn
%define debug_package %{nil}

%global crate anda
Expand Down Expand Up @@ -48,13 +49,12 @@ Summary: %{summary}
%cargo_prep_online

%build
export RUSTFLAGS=$(echo "%build_rustflags" | sed 's@-C link-arg=-fuse-ld=mold@@')
%cargo_build
cargo run --release -p xtask -- manpage
cargo run --release -p xtask -- completion

%install
export RUSTFLAGS=$(echo "%build_rustflags" | sed 's@-C link-arg=-fuse-ld=mold@@')
%build_rustflags" | sed 's@-C link-arg=-fuse-ld=mold@@'
%cargo_install
mkdir -p %{buildroot}%{_mandir}/man1/
Expand Down

0 comments on commit 16e3beb

Please sign in to comment.