Skip to content

Link LLVM dynamically on aarch64-apple-darwin dist and copy libLLVM with a versioned name#154986

Closed
sgasho wants to merge 2 commits into
rust-lang:mainfrom
sgasho:issue-154408-macos-ci-llvm-versioned-dylib-copy-main
Closed

Link LLVM dynamically on aarch64-apple-darwin dist and copy libLLVM with a versioned name#154986
sgasho wants to merge 2 commits into
rust-lang:mainfrom
sgasho:issue-154408-macos-ci-llvm-versioned-dylib-copy-main

Conversation

@sgasho

@sgasho sgasho commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

retry after: #154485

Another solution for #154839

Prepare libLLVM.dylib and libLLVM-{version}{suffix}.dylib

How I verified it works. Let me know if it has wrong steps

  1. dist
./x.py dist rust-dev \
  --host=aarch64-apple-darwin \
  --target=aarch64-apple-darwin \
  --set llvm.download-ci-llvm=false \
  --set llvm.link-shared=true
  1. copy the tar to cache
cp build/dist/rust-dev-nightly-aarch64-apple-darwin.tar.xz \
  build/cache/llvm-116458d0a5ae01cd517cabd2d1aee7f5457018ab-false/rust-dev-nightly-aarch64-apple-darwin.tar.xz
  1. remove old ci-llvm if it exists
rm -rf build/aarch64-apple-darwin/ci-llvm
  1. Build
RUST_BACKTRACE=1 ./x build library -v

@rustbot rustbot added A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Apr 8, 2026
@rust-bors

rust-bors Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #157205) made this pull request unmergeable. Please resolve the merge conflicts.

@sgasho sgasho closed this Jun 1, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants