-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build_native_static_lib with llvm_ar for run_make_support
- Loading branch information
Showing
6 changed files
with
55 additions
and
32 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 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 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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
// When the metadata format changes, old libraries used to cause librustc to abort | ||
// when reading their metadata. The error message for this scenario was unhelpful at best. | ||
// A better error message was implemented in #12645, and this test checks that it is the | ||
// one appearing in stderr in this scenario. | ||
// See https://github.com/rust-lang/rust/pull/12645 | ||
|
||
use run_make_support::fs_wrapper::create_file; | ||
use run_make_support::{ar, rustc}; | ||
use run_make_support::{llvm_ar, rustc}; | ||
|
||
fn main() { | ||
create_file("lib.rmeta"); | ||
ar(&["lib.rmeta"], "libfoo-ffffffff-1.0.rlib"); | ||
llvm_ar().obj_to_ar().output_input("libfoo-ffffffff-1.0.rlib", "lib.rmeta").run(); | ||
rustc().input("foo.rs").run_fail().assert_stderr_contains("found invalid metadata"); | ||
} |
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