浏览代码

remove unneeded dx_link env var

Jonathan Kelley 3 周之前
父节点
当前提交
dc8e98e8c4
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. 0 14
      packages/cli/src/build/request.rs

+ 0 - 14
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<PathBuf, Error> {
-        // 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);
         }