Skip to content

offload: add libLLVM rpath for libomptarget - #162860

Open
sgasho wants to merge 1 commit into
rust-lang:mainfrom
sgasho:offload-remove-ldlibrarypath
Open

sgasho wants to merge 1 commit into
rust-lang:mainfrom
sgasho:offload-remove-ldlibrarypath

Conversation

@sgasho

@sgasho sgasho commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

fix: #162309 (comment)

We can remove LD_LIBRARY_PATH=$(rustc +nightly --print sysroot)/lib when we run the offload code after this PR lands.

libomptarget.so is in lib/rustlib//lib, and libLLVM is in lib/, three hierarchy above libomptarget. So we can specify $ORIGIN/../../../

Lld::run uses the same logic.

スクリーンショット 2026-09-17 3 16 48 スクリーンショット 2026-09-17 3 17 02

I have not verified if it works yet. I'll share the result I can test on my local machine later, but testing using tarballs would be better?

r? @ZuseZ4

@rustbot

rustbot commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants