-
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 output-with-hyphens to rmake format
- Loading branch information
Showing
3 changed files
with
18 additions
and
9 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,18 @@ | ||
// 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::rustc; | ||
use std::path::Path; | ||
|
||
fn main() { | ||
rustc().input("foo-bar.rs").crate_type("bin").run(); | ||
Path::new(bin_name("foo-bar")).exists(); | ||
rustc().input("foo-bar.rs").crate_type("lib").run(); | ||
Path::new(bin_name("libfoo_bar.rlib")).exists(); | ||
} |