diff options
| author | bors <bors@rust-lang.org> | 2023-04-28 03:27:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-28 03:27:33 +0000 |
| commit | 033aa092ab23ba14cdad27073c5e37ba0eddb428 (patch) | |
| tree | 79fc618f753407aaadeb4de5aa1e7565e2311495 /src/bootstrap/bootstrap_test.py | |
| parent | 9a3258fa52acdc4b63d0a49df2bd989153440d9b (diff) | |
| parent | 00b9ce5a2ad81db72e77a0bdc63530f130cde482 (diff) | |
| download | rust-033aa092ab23ba14cdad27073c5e37ba0eddb428.tar.gz rust-033aa092ab23ba14cdad27073c5e37ba0eddb428.zip | |
Auto merge of #110919 - JohnTitor:rollup-9phs2vx, r=JohnTitor
Rollup of 7 pull requests
Successful merges:
- #109702 (configure --set support list as arguments)
- #110620 (Document `const {}` syntax for `std::thread_local`.)
- #110721 (format panic message only once)
- #110881 (refactor(docs): remove macro resolution fallback)
- #110893 (remove inline const deadcode in typeck)
- #110898 (Remove unused std::sys_common::thread_local_key::Key)
- #110909 (Skip `rustc` version detection on macOS)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/bootstrap/bootstrap_test.py')
| -rw-r--r-- | src/bootstrap/bootstrap_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap_test.py b/src/bootstrap/bootstrap_test.py index 26bd80a008f..5ecda83ee66 100644 --- a/src/bootstrap/bootstrap_test.py +++ b/src/bootstrap/bootstrap_test.py @@ -112,6 +112,14 @@ class GenerateAndParseConfig(unittest.TestCase): build = self.serialize_and_parse(["--set", "profile=compiler"]) self.assertEqual(build.get_toml("profile"), 'compiler') + def test_set_codegen_backends(self): + build = self.serialize_and_parse(["--set", "rust.codegen-backends=cranelift"]) + self.assertNotEqual(build.config_toml.find("codegen-backends = ['cranelift']"), -1) + build = self.serialize_and_parse(["--set", "rust.codegen-backends=cranelift,llvm"]) + self.assertNotEqual(build.config_toml.find("codegen-backends = ['cranelift', 'llvm']"), -1) + build = self.serialize_and_parse(["--enable-full-tools"]) + self.assertNotEqual(build.config_toml.find("codegen-backends = ['llvm']"), -1) + if __name__ == '__main__': SUITE = unittest.TestSuite() TEST_LOADER = unittest.TestLoader() |
