Lines 420-427
pkg_setup() {
Link Here
|
420 |
# Since a standard Rust comes with the profiler, instead of patching it out (build/rust/std/BUILD.gn#L103) |
420 |
# Since a standard Rust comes with the profiler, instead of patching it out (build/rust/std/BUILD.gn#L103) |
421 |
# we'll just do a sanity check on the selected slot. |
421 |
# we'll just do a sanity check on the selected slot. |
422 |
if [[ "$(eselect --brief rust show 2>/dev/null)" != *"bin"* ]]; then |
422 |
if [[ "$(eselect --brief rust show 2>/dev/null)" != *"bin"* ]]; then |
423 |
local arch=$(uname -m) |
423 |
local rust_lib_path=$(rustc --print target-libdir) |
424 |
local rust_lib_path="${EPREFIX}/usr/lib/rust/${rustc_ver}/lib/rustlib/${arch}-unknown-linux-gnu/lib" |
|
|
425 |
local profiler_lib=$(find "${rust_lib_path}" -name "libprofiler_builtins-*.rlib" -print -quit) |
424 |
local profiler_lib=$(find "${rust_lib_path}" -name "libprofiler_builtins-*.rlib" -print -quit) |
426 |
if [[ -z "${profiler_lib}" ]]; then |
425 |
if [[ -z "${profiler_lib}" ]]; then |
427 |
eerror "Rust ${rustc_ver} is missing the profiler library." |
426 |
eerror "Rust ${rustc_ver} is missing the profiler library." |
428 |
- |
|
|