2024-06-28 12:18:32 +02:00
|
|
|
// Ensure that rust-lld is *not* used as the default linker on `x86_64-unknown-linux-gnu` on stable
|
|
|
|
|
// or beta.
|
|
|
|
|
|
|
|
|
|
//@ ignore-nightly
|
|
|
|
|
//@ only-x86_64-unknown-linux-gnu
|
|
|
|
|
|
2025-03-18 08:00:10 +01:00
|
|
|
use run_make_support::linker::assert_rustc_doesnt_use_lld;
|
2024-06-28 12:18:32 +02:00
|
|
|
use run_make_support::rustc;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
// A regular compilation should not use rust-lld by default. We'll check that by asking the
|
|
|
|
|
// linker to display its version number with a link-arg.
|
2025-03-18 08:00:10 +01:00
|
|
|
assert_rustc_doesnt_use_lld(rustc().input("main.rs"));
|
2024-06-28 12:18:32 +02:00
|
|
|
}
|