Migrate run-make/used to rmake.rs#125988
Conversation
|
Some changes occurred in run-make tests. cc @jieyouxu |
3101f3e to
c5469ab
Compare
|
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
|
Is the PR's title accurate? and/or the contents :p |
|
I am confusion :ferrisClueless: |
|
I pushed the wrong content to the wrong branch. :o |
3101f3e to
d8b00ba
Compare
|
Ok, the right commits in the right remote branch this time. ^^' |
tests/run-make/used/rmake.rs
Outdated
| fn main() { | ||
| rustc().opt_level("3").emit("obj").input("used.rs").run(); | ||
|
|
||
| let output = Command::new("nm").arg(tmp_dir().join("used.o")).output().unwrap(); |
There was a problem hiding this comment.
Suggestion: we should probably not rely on having nm in the environment. #125787 implements nm on top of third-party libraries, maybe we use that? I'm not going block this PR on that, but this might want to update to the new API, we can first use nm, then replace it when we figure out the non-external-dependency implementation.
There was a problem hiding this comment.
If going with external nm, then this could be updated to use the new APIs:
cmd("nm").arg("used.o").run().assert_stdout_contains("FOO");There was a problem hiding this comment.
I needed to add a few missing pieces for this code to work but it looks much nicer until we have the nm helper. :)
d8b00ba to
9e19682
Compare
|
The run-make-support library was changed cc @jieyouxu |
run-make/used to migrate.rsrun-make/used to rmake.rs
9e19682 to
9a92eb2
Compare
This comment has been minimized.
This comment has been minimized.
9a92eb2 to
73258b7
Compare
This comment has been minimized.
This comment has been minimized.
73258b7 to
4ebf789
Compare
|
Updated! @rustbot ready |
|
☔ The latest upstream changes (presumably #126463) made this pull request unmergeable. Please resolve the merge conflicts. |
4ebf789 to
3be0c7e
Compare
|
Fixed merge conflict. |
|
@rustbot author |
3be0c7e to
5b49b68
Compare
|
Fixed the test and removed the unneeded run-make-support changes. |
|
@bors r=jieyouxu rollup |
…llaumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#125988 (Migrate `run-make/used` to `rmake.rs`) - rust-lang#126500 (Migrate `error-found-staticlib-instead-crate`, `output-filename-conflicts-with-directory`, `output-filename-overwrites-input`, `native-link-modifier-verbatim-rustc` and `native-link-verbatim-linker` `run-make` tests to `rmake.rs` format) - rust-lang#126583 (interpret: better error when we ran out of memory) - rust-lang#126587 (coverage: Add debugging flag `-Zcoverage-options=no-mir-spans`) - rust-lang#126621 (More thorough status-quo tests for `#[coverage(..)]`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#125988 - GuillaumeGomez:migrate-run-make-used, r=jieyouxu Migrate `run-make/used` to `rmake.rs` Part of rust-lang#121876. r? `@jieyouxu`
Part of #121876.
r? @jieyouxu