remove unneeded dx_link env var
This commit is contained in:
1 parent
2ee54e507b
commit
dc8e98e8c4
1 file changed
-14
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user