mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
20404bf4a6
- Hide common linker output behind `linker-info` - Add tests - Account for different capitalization on windows-gnu when removing "warning" prefix - Add some more comments - Add macOS deployment-target test - Ignore linker warnings from trying to statically link glibc I don't know what's going on in `nofile-limit.rs` but I want no part of it. - Use a fake linker so tests are platform-independent
15 lines
395 B
Rust
15 lines
395 B
Rust
//@ only-windows-gnu
|
|
|
|
use run_make_support::{bare_rustc, rustc};
|
|
|
|
fn main() {
|
|
// bare_rustc so that this doesn't try to cross-compile our linker
|
|
bare_rustc().input("fake-linker.rs").output("fake-linker").run();
|
|
rustc()
|
|
.input("main.rs")
|
|
.linker("./fake-linker")
|
|
.arg("-Wlinker-messages")
|
|
.run()
|
|
.assert_stderr_contains("Warning: .drectve");
|
|
}
|