From dc8e98e8c43530cbc0904765a26e587ac0421d50 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 3 Jun 2025 16:44:20 +0200 Subject: [PATCH] remove unneeded dx_link env var --- packages/cli/src/build/request.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/cli/src/build/request.rs b/packages/cli/src/build/request.rs index 612a1c8b0..d6036de42 100644 --- a/packages/cli/src/build/request.rs +++ b/packages/cli/src/build/request.rs @@ -1945,20 +1945,6 @@ impl BuildRequest { /// cause issues with a custom linker setup. In theory, rust translates most flags to the right /// linker format. fn select_linker(&self) -> Result { - // Use a custom linker for non-crosscompile and crosscompile targets - if matches!( - self.triple.operating_system, - OperatingSystem::Darwin(_) | OperatingSystem::Linux | OperatingSystem::Windows - ) { - if let Ok(linker) = std::env::var("DX_HOST_LINKER") { - return Ok(PathBuf::from(linker)); - } - } - - if let Ok(linker) = std::env::var("DX_LINKER") { - return Ok(PathBuf::from(linker)); - } - if let Some(linker) = self.custom_linker.clone() { return Ok(linker); }