X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Futil.rs;h=58220783228b2883fae9ba5ca03d646048e41964;hb=dd12cd6dc631b5e964d541d370ca863c2242376c;hp=8a2f46abbd23cc7f894ef4c168c5039a39344aff;hpb=528b4af7964e9632ef65f4543893bec846cf4403;p=rust.git diff --git a/src/bootstrap/util.rs b/src/bootstrap/util.rs index 8a2f46abbd2..58220783228 100644 --- a/src/bootstrap/util.rs +++ b/src/bootstrap/util.rs @@ -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.