Skip to content
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

Default-enable llvm_tools_enabled when no config.toml is present #133207

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

jieyouxu
Copy link
Member

Fixes #133195. cc @wesleywiser could you double check if with this patch and no config.toml that you can run ./x test tests/ui --stage 1?

llvm-objcopy is usually required by cg_ssa on macOS to workaround bad strips.

cc @bjorn3 I hope this doesn't break cg_clif...

r? bootstrap

@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 Nov 19, 2024
@rustbot
Copy link
Collaborator

rustbot commented Nov 19, 2024

This PR modifies src/bootstrap/src/core/config.

If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs.

@bjorn3
Copy link
Member

bjorn3 commented Nov 19, 2024

I hope this doesn't break cg_clif...

Does this disable the option?

rustc = "$(pwd)/../dist/bin/rustc-clif"
cargo = "$(rustup which cargo)"
If not, it either should, or the config file there will need to be changed to explicitly disable it.

@rustbot
Copy link
Collaborator

rustbot commented Nov 19, 2024

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@jieyouxu
Copy link
Member Author

If not, it either should, or the config file there will need to be changed to explicitly disable it.

I modified the config there to explicitly disable llvm tools.

@jieyouxu
Copy link
Member Author

Changes since last review (diff):

  • Fixed change log entry
  • Adjusted cg_clif's config.toml to disable llvm tools

@Kobzol
Copy link
Contributor

Kobzol commented Nov 19, 2024

LGTM, if bjorn3 is ok with the latest change.

@jieyouxu
Copy link
Member Author

@bors r=Kobzol,bjorn3 rollup

@bors
Copy link
Contributor

bors commented Nov 19, 2024

📌 Commit 4b5c883 has been approved by Kobzol,bjorn3

It is now in the queue for this repository.

@bors bors 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 Nov 19, 2024
Copy link
Member

@wesleywiser wesleywiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this fixes building without config.toml for me. Thanks @jieyouxu! 💛

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 19, 2024
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#123947 (Add vec_deque::Iter::as_slices and friends)
 - rust-lang#125405 (Add std::thread::add_spawn_hook.)
 - rust-lang#133175 (ci: use free runner in dist-i686-msvc)
 - rust-lang#133183 (Mention std::fs::remove_dir_all in std::fs::remove_dir)
 - rust-lang#133188 (Add `visit` methods to ast nodes that already have `walk`s on ast visitors)
 - rust-lang#133201 (Remove `TokenKind::InvalidPrefix`)
 - rust-lang#133207 (Default-enable `llvm_tools_enabled` when no `config.toml` is present)
 - rust-lang#133213 (Correct the tier listing of `wasm32-wasip2`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 49aec06 into rust-lang:master Nov 20, 2024
6 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Nov 20, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Nov 20, 2024
Rollup merge of rust-lang#133207 - jieyouxu:macos-objcopy, r=Kobzol,bjorn3

Default-enable `llvm_tools_enabled` when no `config.toml` is present

Fixes rust-lang#133195. cc `@wesleywiser` could you double check if with this patch and no `config.toml` that you can run `./x test tests/ui --stage 1`?

`llvm-objcopy` is usually required by cg_ssa on macOS to workaround bad `strip`s.

cc `@bjorn3` I hope this doesn't break cg_clif...

r? bootstrap
@jieyouxu jieyouxu deleted the macos-objcopy branch November 20, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

Bootstrap without creating a config.toml fails with missing rust-objcopy
6 participants