Conversation
|
This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. |
|
|
|
This should be the last bootstrap PR for a while. |
| } | ||
|
|
||
| let lld_bin = builder.ensure(Lld { target }).join("bin"); | ||
| ldflags.push_all(format!("-B{} -fuse-ld=lld", lld_bin.display())); |
There was a problem hiding this comment.
This duplicates the -fuse-ld=lld flag set on line 846, right?
There was a problem hiding this comment.
Yep. I don't think it's harmful, but I moved it to avoid it.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3e659af to
7f7e355
Compare
7f7e355 to
752e7c0
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
Rollup of 9 pull requests Successful merges: - #161777 (Add Natvis visualiser and debuginfo tests for `f128`) - #162423 (Rename the src install build step to rust-src.) - #162824 (link Enzyme and the offload with in-tree lld if possible) - #161803 (Fix docs of make_ascii_lowercase/make_ascii_upercase) - #162256 (Add mentions to sync back `RELEASES.md` to the `main` branch) - #162803 (docs(num): add documentation for `NonZero::from_str`) - #162906 (Move more `rustdoc-html` tests in the right location) - #162922 (An assortment of polonius tweaks) - #162930 (Use niche length type for strlen to guarantee `isize::MAX` bound)
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
…uwer Rollup of 15 pull requests Successful merges: - #160401 (sparc: make ABI consistent with clang) - #161777 (Add Natvis visualiser and debuginfo tests for `f128`) - #162423 (Rename the src install build step to rust-src.) - #162740 (stdarch subtree update) - #162824 (link Enzyme and the offload with in-tree lld if possible) - #162832 (add `Div` and `Mul` for `Complex<{float}>`) - #161005 (fix: unfulfilled nested dead code lint) - #161803 (Fix docs of make_ascii_lowercase/make_ascii_upercase) - #162256 (Add mentions to sync back `RELEASES.md` to the `main` branch) - #162661 (simplify `Target::GenericParam`) - #162666 (Tidy footnote in `platform-support.md`) - #162803 (docs(num): add documentation for `NonZero::from_str`) - #162906 (Move more `rustdoc-html` tests in the right location) - #162922 (An assortment of polonius tweaks) - #162930 (Use niche length type for strlen to guarantee `isize::MAX` bound)
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
…uwer Rollup of 15 pull requests Successful merges: - #160401 (sparc: make ABI consistent with clang) - #161777 (Add Natvis visualiser and debuginfo tests for `f128`) - #162423 (Rename the src install build step to rust-src.) - #162740 (stdarch subtree update) - #162824 (link Enzyme and the offload with in-tree lld if possible) - #161005 (fix: unfulfilled nested dead code lint) - #161803 (Fix docs of make_ascii_lowercase/make_ascii_upercase) - #162256 (Add mentions to sync back `RELEASES.md` to the `main` branch) - #162661 (simplify `Target::GenericParam`) - #162666 (Tidy footnote in `platform-support.md`) - #162803 (docs(num): add documentation for `NonZero::from_str`) - #162906 (Move more `rustdoc-html` tests in the right location) - #162922 (An assortment of polonius tweaks) - #162929 (Update unicode_data to Unicode version 18.0.0) - #162930 (Use niche length type for strlen to guarantee `isize::MAX` bound)
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
…uwer Rollup of 14 pull requests Successful merges: - #160401 (sparc: make ABI consistent with clang) - #161777 (Add Natvis visualiser and debuginfo tests for `f128`) - #162740 (stdarch subtree update) - #162824 (link Enzyme and the offload with in-tree lld if possible) - #161005 (fix: unfulfilled nested dead code lint) - #161803 (Fix docs of make_ascii_lowercase/make_ascii_upercase) - #162256 (Add mentions to sync back `RELEASES.md` to the `main` branch) - #162661 (simplify `Target::GenericParam`) - #162666 (Tidy footnote in `platform-support.md`) - #162803 (docs(num): add documentation for `NonZero::from_str`) - #162906 (Move more `rustdoc-html` tests in the right location) - #162922 (An assortment of polonius tweaks) - #162929 (Update unicode_data to Unicode version 18.0.0) - #162930 (Use niche length type for strlen to guarantee `isize::MAX` bound)
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
link Enzyme and the offload with in-tree lld if possible I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds. I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld. This fixes both by just using our up-to-date in-tree lld (if available). I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up. r? kobzol closes: rust-lang#160584
…uwer Rollup of 20 pull requests Successful merges: - #160401 (sparc: make ABI consistent with clang) - #162715 (don't calculate dtors if the self ty has impossible bounds) - #162740 (stdarch subtree update) - #162824 (link Enzyme and the offload with in-tree lld if possible) - #162946 (Simplify query stack printing) - #161005 (fix: unfulfilled nested dead code lint) - #161246 (Normalize non-rigid aliases in ty_known_to_outlive) - #161803 (Fix docs of make_ascii_lowercase/make_ascii_upercase) - #162256 (Add mentions to sync back `RELEASES.md` to the `main` branch) - #162661 (simplify `Target::GenericParam`) - #162666 (Tidy footnote in `platform-support.md`) - #162803 (docs(num): add documentation for `NonZero::from_str`) - #162879 (use u64 limbs in core::num::bignum) - #162903 (PassWrapper: adapt to LLVM reading exception model from module flag) - #162905 (c-variadic: add checks for windows i686) - #162906 (Move more `rustdoc-html` tests in the right location) - #162922 (An assortment of polonius tweaks) - #162929 (Update unicode_data to Unicode version 18.0.0) - #162930 (Use niche length type for strlen to guarantee `isize::MAX` bound) - #162960 (Guard types with unstable `Allocator` params ahead of partial stabilization)
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #162983 (comment) |
|
This pull request was unapproved. This PR was contained in a rollup (#162983), which was unapproved. |
|
@bors try jobs=dist-x86_64-llvm-mingw |
This comment has been minimized.
This comment has been minimized.
link Enzyme and the offload with in-tree lld if possible try-job: dist-x86_64-llvm-mingw
|
Oh, this was aimed at and tested on x86-linux, since that's where offload is currently active, but I guess via autodiff it could have broken mingw, even though I'd find it a bit surprising. I'll have a look, sorry |
|
💔 Test for f70d840 failed: CI. Failed job:
|
|
The job Click to see the possible cause of the failure (guessed by this bot) |
I have multiple LLVM builds on all my computers, and often enough ended up with an older lld version on the path, which often breaks Offload builds.
I've also seen autodiff builds take forever since some of it's files are huge, and builds somehow end up using ld.
This fixes both by just using our up-to-date in-tree lld (if available).
I used an LLM to implement a couple of bootstrap fixes, including this one. I then split this one out and cleaned it up.
r? kobzol
closes: #160584