Correctly handle OVERWRITE_TARGET_TRIPLE
env variable
This commit is contained in:
parent
53b2759bef
commit
2ec8d46dd1
@ -78,6 +78,11 @@ impl ConfigInfo {
|
||||
};
|
||||
self.host_triple = rustc_version_info(Some(&rustc))?.host.unwrap_or_default();
|
||||
|
||||
if self.target_triple.is_empty() {
|
||||
if let Some(overwrite) = env.get("OVERWRITE_TARGET_TRIPLE") {
|
||||
self.target_triple = overwrite.clone();
|
||||
}
|
||||
}
|
||||
if self.target_triple.is_empty() {
|
||||
self.target_triple = self.host_triple.clone();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user