Skip to content

Commit 2ec8d46

Browse files
Correctly handle OVERWRITE_TARGET_TRIPLE env variable
1 parent 53b2759 commit 2ec8d46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build_system/src/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ impl ConfigInfo {
7878
};
7979
self.host_triple = rustc_version_info(Some(&rustc))?.host.unwrap_or_default();
8080

81+
if self.target_triple.is_empty() {
82+
if let Some(overwrite) = env.get("OVERWRITE_TARGET_TRIPLE") {
83+
self.target_triple = overwrite.clone();
84+
}
85+
}
8186
if self.target_triple.is_empty() {
8287
self.target_triple = self.host_triple.clone();
8388
}

0 commit comments

Comments
 (0)