diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs index c36eeb69ce81..e41c6033d68b 100644 --- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs +++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs @@ -21,7 +21,9 @@ pub(crate) fn target() -> Target { // When we're asked to use the `rust-lld` linker by default, set the appropriate lld-using // linker flavor, and self-contained linker component. if option_env!("CFG_USE_SELF_CONTAINED_LINKER").is_some() { - panic!("foo"); + if true { + panic!("foo"); + } base.linker_flavor = LinkerFlavor::Gnu(Cc::Yes, Lld::Yes); base.link_self_contained = crate::spec::LinkSelfContainedDefault::with_linker(); }