Skip to content

Commit

Permalink
virtual/rust: add IUSE=profiler
Browse files Browse the repository at this point in the history
See: gentoo#35085 (comment)
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
  • Loading branch information
xen0n committed Mar 8, 2024
1 parent 197f43a commit a33f8a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions virtual/rust/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<name>Rust Project</name>
</maintainer>
<use>
<flag name="profiler">Build the profiler runtime and rust-demangler tool (needed for '-C profile-generate' or '-C instrument-coverage' codegen opts)</flag>
<flag name="rustfmt">Install rustfmt, Rust code formatter</flag>
</use>
<stabilize-allarches/>
Expand Down
6 changes: 3 additions & 3 deletions virtual/rust/rust-1.76.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ LICENSE=""
# neither system nor bundled, so we just hardcode it here.
SLOT="0/llvm-17"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="rustfmt"
IUSE="rustfmt profiler"

BDEPEND=""
RDEPEND="|| (
~dev-lang/rust-bin-${PV}[rustfmt?,${MULTILIB_USEDEP}]
~dev-lang/rust-${PV}[rustfmt?,${MULTILIB_USEDEP}]
~dev-lang/rust-bin-${PV}[profiler?,rustfmt?,${MULTILIB_USEDEP}]
~dev-lang/rust-${PV}[profiler?,rustfmt?,${MULTILIB_USEDEP}]
)"

0 comments on commit a33f8a8

Please sign in to comment.