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