X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbootstrap%2Futil.rs;h=58220783228b2883fae9ba5ca03d646048e41964;hb=c9ae38c71e2838f1ac282803ddde47f21f4ca76e;hp=8a2f46abbd23cc7f894ef4c168c5039a39344aff;hpb=05cd26b22dc1981e89495bc5ad2282aaaec60c51;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.