You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable support for compiling for UEFI targets. This includes compiling
binaries such as bootloaders, stubs for EFI bundles and similar utilities.
Specifically, I used this functionality to finish work a minimal EFI
stub, candyboot: https://git.sr.ht/~whynothugo/candyboot
The UEFI target is only supported by LLVM. GCC cannot produce native EFI
binaries. When compiling for a UEFI target, GCC produces ELF binaries
and uses GNU-EFI as a stub loader to run them inside EFI environments.
This approach does not work when compiling Rust.
The profiler_builtins crate fails to build for the UEFI target; it is a
C component which requires a UEFI specific sysroot to compile. During
coordination with upstream, it came up these compiler built-ins could
not be disabled on a per-target basis. This is now implemented upstream,
and available in Rust stable since 1.86.0.
See: rust-lang/rust#135326
0 commit comments