about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2023-06-26 01:50:27 +0900
committerGitHub <noreply@github.com>2023-06-26 01:50:27 +0900
commit96ab7e6ed72543d8a85fbb270d8cae3da1a00aa5 (patch)
treeb91f0de2c4ff548eeb6eb0eba4084f7e7d7da4ea /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentdb3c3942ea846c541dd6c34c80fe8470b8a228b1 (diff)
parent1e7f03718b3e1c19e59afff518d80d3717b785b9 (diff)
downloadrust-96ab7e6ed72543d8a85fbb270d8cae3da1a00aa5.tar.gz
rust-96ab7e6ed72543d8a85fbb270d8cae3da1a00aa5.zip
Rollup merge of #112281 - jyn514:test-bootstrap-py, r=albertlarsan68
Test the cargo args generated by bootstrap.py

I recommend reviewing this commit-by-commit using the instructions in https://rustc-dev-guide.rust-lang.org/git.html#moving-large-sections-of-code.

- Test cargo arguments passed by bootstrap.py

  This moves a lot of code around, but the logic itself is not too terribly complicated.

    - Move almost all logic in `def bootstrap` to the `RustBuild` class, to avoid mixing setting configuration with running commands
    - Update various doctests to the new (more complete) RustBuild config. In particular, don't pretend that `bin_root` supports `build` being unset.
    - Change `parse_args` not to use a global, to allow testing it
    - Set BUILD_DIR appropriately so bootstrap.py doesn't panic because cargo isn't found

- Allow passing arguments to `bootstrap_test.py`

    Previous, it used the built-in test runner, which doesn't support options unless they're manually passed in the script.

- Fix progress messages for configure in bootstrap_test.py

    Before it would unconditionally print `configure-args = []`.

r? `@albertlarsan68` cc https://github.com/rust-lang/rust/pull/112089 https://github.com/rust-lang/rust/pull/111979#issuecomment-1568525699
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions