-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 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::{rustc, tmp_dir}; | ||
use std::fs; | ||
fn main() { | ||
rustc().extra_filename("-hash").input("foo.rs").run(); | ||
rustc().input("bar.rs").run(); | ||
fs::rename(tmp_dir().join("libfoo-hash.rlib"), tmp_dir().join("libfoo-another-hash.rlib")); | ||
rustc().input("baz.rs").run(); | ||
} |