mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
84ac80f192
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
16 lines
607 B
Rust
16 lines
607 B
Rust
// If a library is compiled with -C extra-filename, the rust compiler
|
|
// will take this into account when searching for libraries. However,
|
|
// if that library is then renamed, the rust compiler should fall back
|
|
// to its regular library location logic and not immediately fail to find
|
|
// the renamed library.
|
|
// See https://github.com/rust-lang/rust/pull/49253
|
|
|
|
use run_make_support::{rfs, rustc};
|
|
|
|
fn main() {
|
|
rustc().extra_filename("-hash").input("foo.rs").run();
|
|
rustc().input("bar.rs").run();
|
|
rfs::rename("libfoo-hash.rlib", "libfoo-another-hash.rlib");
|
|
rustc().input("baz.rs").run();
|
|
}
|