Files
Jynn Nelson 20404bf4a6 Split out linker-info from linker-messages
- 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
2026-03-06 10:38:21 +01:00

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");
}