-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add llvm-tools to manifest #51728
Conversation
This commit expands on a previous commit to build llvm-tools as a rustup component. It causes the llvm-tools component to be built if the extended step is active. It also adds llvm-tools to the build manifest so rustup can find it.
This comment has been minimized.
This comment has been minimized.
r? @kennytm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really your code, but we should clean this up.
src/bootstrap/dist.rs
Outdated
let llvm_tools_installer = builder.ensure(LlvmTools { | ||
stage, | ||
target, | ||
compiler: builder.compiler(stage, target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed -- the LlvmTools step does not need a compiler, it should be using the target argument instead of compiler.host.
@bors try Checks if the tools are properly distributed. |
⌛ Trying commit 5fc87eb with merge 21fcddddc57d6a334038466d4a21bfa6ce40b41f... |
Use `target` instead.
Ok I think I straightened out the issue with |
Pending try results I think this is good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LLVM tools is successfully uploaded to https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rustc-builds/21fcddddc57d6a334038466d4a21bfa6ce40b41f/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.xz
@bors r+ |
📌 Commit f10da5f has been approved by |
⌛ Testing commit f10da5f with merge 0b3686f7d2e5f3e96004634185df0ac4e85a8ded... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1 similar comment
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
⌛ Testing commit f10da5f with merge 465eabb433e6644c66c9f1525f89fee4a013fb21... |
⌛ Testing commit f10da5f with merge 2f50d35642a089106be718da7322346eba625ed1... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
⌛ Testing commit f10da5f with merge 48c67bdb1d94bca198178c716c5451d50a2561b1... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1 similar comment
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
build: add llvm-tools to manifest This commit expands on a previous commit to build llvm-tools as a rustup component. It causes the llvm-tools component to be built if the extended step is active. It also adds llvm-tools to the build manifest so rustup can find it. I tested this as far as I could, but had to hack `build-manifest/src/main.rs` a bit as it is not supported on MacOS. The main change I am not sure about is this line: ```rust self.package("llvm-tools", &mut manifest.pkg, TARGETS); ``` There are numerous calls to `self.package()`, and I'm not sure if `TARGETS`, `HOSTS`, or `["*"]` is appropriate for llvm-tools. Otherwise I mostly copied the example set by `rustfmt-preview`.
☀️ Test successful - status-appveyor, status-travis |
I have problem with LlvmTools step when LLVM is external.
does the compoment should be built at all on such configuration ? |
This commit expands on a previous commit to build llvm-tools as a rustup component. It causes the llvm-tools component to be built if the extended step is active. It also adds llvm-tools to the build manifest so rustup can find it.
I tested this as far as I could, but had to hack
build-manifest/src/main.rs
a bit as it is not supported on MacOS. The main change I am not sure about is this line:There are numerous calls to
self.package()
, and I'm not sure ifTARGETS
,HOSTS
, or["*"]
is appropriate for llvm-tools.Otherwise I mostly copied the example set by
rustfmt-preview
.