From 8b973ddd1a3d500b3fb966cf716c24486e8f0cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 3 Jan 2025 17:49:15 +0100 Subject: [PATCH 1/2] WIP --- .../rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs | 1 + 1 file changed, 1 insertion(+) 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 59ec6c7f9d5fb..c36eeb69ce814 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,6 +21,7 @@ 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"); base.linker_flavor = LinkerFlavor::Gnu(Cc::Yes, Lld::Yes); base.link_self_contained = crate::spec::LinkSelfContainedDefault::with_linker(); } From 89e04769ad420d9df23d86cf741baefbb2af3d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 3 Jan 2025 18:04:02 +0100 Subject: [PATCH 2/2] WIP --- .../rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 c36eeb69ce814..e41c6033d68b1 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(); }