-
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.
rewrite output-with-hyphens to rmake format
- Loading branch information
Showing
4 changed files
with
29 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
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,17 @@ | ||
// Rust files with hyphens in their filename should | ||
// not result in compiled libraries keeping that hyphen - | ||
// it should become an underscore. Only bin executables | ||
// should keep the hyphen. This test ensures that this rule | ||
// remains enforced. | ||
// See https://github.com/rust-lang/rust/pull/23786 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{path, rustc}; | ||
|
||
fn main() { | ||
rustc().input("foo-bar.rs").crate_type("bin").run(); | ||
path(bin_name("foo-bar")).exists(); | ||
rustc().input("foo-bar.rs").crate_type("lib").run(); | ||
path(bin_name("libfoo_bar.rlib")).exists(); | ||
} |
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