-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite and rename issue-26006 to rmake
- Loading branch information
Showing
6 changed files
with
26 additions
and
19 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
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
// In this test, the symlink created is invalid (valid relative to the root, but not | ||
// relatively to where it is located), and used to cause an internal | ||
// compiler error (ICE) when passed as a library search path. This was fixed in #26044, | ||
// and this test checks that the invalid symlink is instead simply ignored. | ||
// See https://github.com/rust-lang/rust/issues/26006 | ||
|
||
//FIXME(Oneirical): try it on test-various and windows | ||
|
||
use run_make_support::{create_symlink, fs_wrapper, rustc}; | ||
|
||
fn main() { | ||
fs_wrapper::create_dir("out"); | ||
fs_wrapper::create_dir("out/libc"); | ||
rustc() | ||
.input("in/libc/lib.rs") | ||
.crate_name("libc") | ||
.metadata("foo") | ||
.output("out/libc/liblibc.rlib") | ||
.run(); | ||
fs_wrapper::create_dir("out/time"); | ||
fs_wrapper::create_dir("out/time/deps"); | ||
create_symlink("out/libc/liblibc.rlib", "out/time/deps"); | ||
rustc().input("in/time/lib.rs").library_search_path("dependency=out/time/deps").run(); | ||
} |
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