diff options
| author | Jesus Checa Hidalgo <jchecahi@redhat.com> | 2025-04-11 16:57:38 +0200 |
|---|---|---|
| committer | Jesus Checa Hidalgo <jchecahi@redhat.com> | 2025-04-11 16:57:38 +0200 |
| commit | dc0fbcab7e0673afe62b3e8e74905d9e5f5b74a4 (patch) | |
| tree | 38e7624574c1f0808492e285a70bd059a1638834 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 71b68da1bd9fa6afb9f964a731e9c843ab0862bd (diff) | |
| download | rust-dc0fbcab7e0673afe62b3e8e74905d9e5f5b74a4.tar.gz rust-dc0fbcab7e0673afe62b3e8e74905d9e5f5b74a4.zip | |
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 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
