about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2025-04-13 11:48:18 +0000
committerGitHub <noreply@github.com>2025-04-13 11:48:18 +0000
commitf2a2135dc6efa9ac6fa5d0fcfec94ccaecb8b6c7 (patch)
tree8851460eb617e7b1310fe45d99d9991629c6cbd0 /compiler/rustc_codegen_llvm/src/errors.rs
parent423e7b8286193195c550e9dec9cb91d87a045394 (diff)
parentdc0fbcab7e0673afe62b3e8e74905d9e5f5b74a4 (diff)
downloadrust-f2a2135dc6efa9ac6fa5d0fcfec94ccaecb8b6c7.tar.gz
rust-f2a2135dc6efa9ac6fa5d0fcfec94ccaecb8b6c7.zip
Rollup merge of #139677 - jchecahi:profiler-builtin-rtlib-path-fix, r=kobzol
Fix profiler_builtins build script to handle full path to profiler lib

LLVM_PROFILER_RT_LIB may be set to an absolute path (e.g., in Fedora builds), but `-l` expects a library name, not a path. After #138273, this caused builds to fail with a "could not find native static library" error.

This patch updates the build script to split the path into directory and filename, using `cargo::rustc-link-search` for the directory and `cargo::rustc-link-lib=+verbatim` for the file. This allows profiler_builtins to correctly link the static library even when an absolute path is provided.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions