diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-20 21:45:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 21:45:04 +0800 |
| commit | bdd88ddd309077ef2356c226f93f3fe9608eb494 (patch) | |
| tree | 3c1fc714ed3be727aa9fccc719d88e9eab6511d6 /compiler/rustc_codegen_llvm/src | |
| parent | b5741a36a897dd93936d31ea0c1688f1399a2e06 (diff) | |
| parent | 7d806171d00f53a720e6784a878a98cbef5c3d4a (diff) | |
| download | rust-bdd88ddd309077ef2356c226f93f3fe9608eb494.tar.gz rust-bdd88ddd309077ef2356c226f93f3fe9608eb494.zip | |
Rollup merge of #135433 - tanvincible:patch-1, r=onur-ozkan
Add Profile Override for Non-Git Sources
## PR description
- Fixes #135358
This PR introduces the following updates to
1. `bootstrap.py`:
- If the `profile` is `None` and the source is non-git, the `profile` is automatically overridden to `"dist"`.
- Ensures that options like `download-ci-llvm` and `download-rustc` are not used with non-git sources. An exception is raised if these options are present in the configuration when the source is non-git.
2. `bootstrap_test.py`
- Added unit tests to verify both the profile override mechanism and the assertion for restricted options.
These tests ensure the correct behavior for non-git sources and the handling of `if-unchanged` options.
r? `@onur-ozkan`
`@rustbot` T-bootstrap
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
