2024-05-28 13:37:08 -05:00
|
|
|
// 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
|
|
|
|
|
2024-07-28 17:13:50 -05:00
|
|
|
use run_make_support::{rfs, rustc};
|
2024-06-06 13:47:00 -05:00
|
|
|
|
2024-05-28 13:37:08 -05:00
|
|
|
fn main() {
|
|
|
|
rustc().extra_filename("-hash").input("foo.rs").run();
|
|
|
|
rustc().input("bar.rs").run();
|
2024-07-17 07:42:06 -05:00
|
|
|
rfs::rename("libfoo-hash.rlib", "libfoo-another-hash.rlib");
|
2024-05-28 13:37:08 -05:00
|
|
|
rustc().input("baz.rs").run();
|
|
|
|
}
|