]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/util.rs
Rollup merge of #104774 - vojtechkral:doc-str-empty-split-whitespace, r=thomcc
[rust.git] / src / bootstrap / util.rs
index 8a2f46abbd23cc7f894ef4c168c5039a39344aff..58220783228b2883fae9ba5ca03d646048e41964 100644 (file)
@@ -44,7 +44,13 @@ macro_rules! t {
 /// Given an executable called `name`, return the filename for the
 /// executable for a particular target.
 pub fn exe(name: &str, target: TargetSelection) -> String {
-    if target.contains("windows") { format!("{}.exe", name) } else { name.to_string() }
+    if target.contains("windows") {
+        format!("{}.exe", name)
+    } else if target.contains("uefi") {
+        format!("{}.efi", name)
+    } else {
+        name.to_string()
+    }
 }
 
 /// Returns `true` if the file name given looks like a dynamic library.