Skip to content

Link LLVM dynamically on aarch64-apple-darwin#151063

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
sgasho:aarch64-dist-enzyme
Mar 24, 2026
Merged

Link LLVM dynamically on aarch64-apple-darwin#151063
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
sgasho:aarch64-dist-enzyme

Conversation

@sgasho
Copy link
Contributor

@sgasho sgasho commented Jan 13, 2026

View all comments

Follow-up to #152768.

  • Link LLVM dynamically on MacOS
  • Fix a macOS LLVM dylib name mismatch

@rustbot rustbot added A-CI Area: Our Github Actions CI 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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jan 13, 2026
@sgasho sgasho changed the title Add dist step for enzyme including aarch64-apple-darwin Add dist step for enzyme, including aarch64-apple-darwin Jan 13, 2026
@ZuseZ4
Copy link
Member

ZuseZ4 commented Jan 13, 2026

@bors delegate try

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

Unknown command "delegate". Run @bors help to see available commands.

@ZuseZ4
Copy link
Member

ZuseZ4 commented Jan 13, 2026

Hmm, not sure about the exact syntax, but delegate itself should have been recognized, maybe not ported to the new bots yet? I'll let Jakub handle it.
For now

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 13, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@Kobzol
Copy link
Member

Kobzol commented Jan 13, 2026

@bors delegate=try

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

✌️ @sgasho, you can now perform try builds on this pull request!

You can now post @bors try to start a try build.

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 13, 2026

☀️ Try build successful (CI)
Build commit: a658070 (a65807068ca7fef2605b24756206b9e5dfa49bbd, parent: db1484bdee1cb065b322a5bd512b39c49dadc9e5)

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 14, 2026

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

@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from 30f87bc to 31d3fde Compare January 17, 2026 03:41
@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 17, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@rustbot rustbot added the F-autodiff `#![feature(autodiff)]` label Jan 17, 2026
@rust-log-analyzer

This comment has been minimized.

@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from bc7b483 to 98144d4 Compare January 17, 2026 07:21
@sgasho
Copy link
Contributor Author

sgasho commented Jan 17, 2026

@bors try jobs=dist-aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Jan 17, 2026
Add dist step for enzyme, including aarch64-apple-darwin


try-job: dist-aarch64-apple
@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 17, 2026

💔 Test for 2c9be7e failed: CI. Failed job:

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 21, 2026

☀️ Try build successful (CI)
Build commit: e9082b0 (e9082b0b5e7003739ca4f66d9151b541644e4398, parent: 7218b7fa17e8ef5e99525ae25e6e82224c27039d)

@sgasho sgasho force-pushed the aarch64-dist-enzyme branch from 501934f to e7c268f Compare March 22, 2026 07:07
@sgasho sgasho changed the title Dist Enzyme for macOS with unversioned LLVM dylib Link LLVM dynamically on aarch64-apple-darwin Mar 22, 2026
@sgasho
Copy link
Contributor Author

sgasho commented Mar 22, 2026

@bors try jobs=dist-aarch64-apple,aarch64-apple

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 22, 2026
Link LLVM dynamically on aarch64-apple-darwin


try-job: dist-aarch64-apple
try-job: aarch64-apple
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 22, 2026

☀️ Try build successful (CI)
Build commit: a04723f (a04723f3b8616cce57bf04d947a441ba2e27b38e, parent: 562dee4820c458d823175268e41601d4c060588a)

@sgasho
Copy link
Contributor Author

sgasho commented Mar 22, 2026

Current commit is the final state after addressing the reviews.

  • Added some comments on code changes
  • Removed enzyme from the dist command as below
    • スクリーンショット 2026-03-23 0 12 56

@RalfJung

Could you please run miri check again if you think you need to do it(maybe not)?

@RalfJung
Copy link
Member

If nothing changed about the dist artifact, I don't think we have to re-test.

@ZuseZ4 ZuseZ4 marked this pull request as ready for review March 23, 2026 20:33
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 23, 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 Mar 23, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 23, 2026

r? @davidtwco

rustbot has assigned @davidtwco.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @cuviper, compiler
  • @cuviper, compiler expanded to 69 candidates
  • Random selection from 13 candidates

@ZuseZ4
Copy link
Member

ZuseZ4 commented Mar 23, 2026

The perf concern is addressed, and the name adjustment was confirmed to work by at least one downstream user. I don't see any outstanding concerns, so let's try again.

@bors r+ rollup=never

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 23, 2026

📌 Commit e7c268f has been approved by ZuseZ4

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 23, 2026
@ZuseZ4 ZuseZ4 assigned ZuseZ4 and unassigned davidtwco Mar 23, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 24, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 24, 2026

☀️ Test successful - CI
Approved by: ZuseZ4
Duration: 3h 8m 38s
Pushing cde9cf0 to main...

@rust-bors rust-bors bot merged commit cde9cf0 into rust-lang:main Mar 24, 2026
13 checks passed
@github-actions
Copy link
Contributor

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 9df8317 (parent) -> cde9cf0 (this PR)

Test differences

Show 2 test diffs

2 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard cde9cf08d7a79042758db8d5d824d0341da97f7a --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. x86_64-rust-for-linux: 52m 46s -> 43m 54s (-16.8%)
  2. x86_64-gnu-llvm-22-2: 1h 40m -> 1h 24m (-15.9%)
  3. armhf-gnu: 1h 36m -> 1h 22m (-14.8%)
  4. optional-x86_64-gnu-parallel-frontend: 2h 30m -> 2h 8m (-14.6%)
  5. pr-check-1: 32m 56s -> 28m 9s (-14.5%)
  6. x86_64-gnu-debug: 2h 3m -> 1h 48m (-12.7%)
  7. x86_64-gnu-llvm-21-1: 1h 17m -> 1h 9m (-9.9%)
  8. i686-gnu-2: 1h 41m -> 1h 31m (-9.6%)
  9. x86_64-msvc-ext3: 1h 53m -> 1h 42m (-9.4%)
  10. aarch64-gnu: 2h 17m -> 2h 4m (-9.1%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (cde9cf0): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary -0.2%, secondary -2.2%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.5% [1.6%, 2.9%] 4
Regressions ❌
(secondary)
0.8% [0.8%, 0.8%] 1
Improvements ✅
(primary)
-2.9% [-3.4%, -2.0%] 4
Improvements ✅
(secondary)
-3.2% [-3.5%, -3.0%] 3
All ❌✅ (primary) -0.2% [-3.4%, 2.9%] 8

Cycles

Results (primary 2.3%, secondary 2.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.3% [2.1%, 2.5%] 3
Regressions ❌
(secondary)
2.4% [2.4%, 2.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.3% [2.1%, 2.5%] 3

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 486.263s -> 486.46s (0.04%)
Artifact size: 394.97 MiB -> 394.96 MiB (-0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-CI Area: Our Github Actions CI A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc F-autodiff `#![feature(autodiff)]` merged-by-bors This PR was explicitly merged by bors. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

10 participants