Skip to content

Commit

Permalink
lib.systems.examples: add UEFI examples
Browse files Browse the repository at this point in the history
These are mostly intended for use with Rust, but that involves
building compiler-rt for the cross system, so we are capable of
building C/C++ as well.
  • Loading branch information
RaitoBezarius authored and alyssais committed Apr 26, 2023
1 parent 52af688 commit b5fd33b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/systems/examples.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,32 @@ rec {
libc = "newlib";
};

#
# UEFI
#

# See: https://github.com/rust-lang/rust/pull/56769/files#r241916113
i686-uefi = {
system = "x86_64-windows";
rust.config = "i686-unknown-uefi";
useLLVM = true;
libc = null;
};

x86_64-uefi = {
system = "x86_64-windows";
rust.config = "x86_64-unknown-uefi";
useLLVM = true;
libc = null;
};

aarch64-uefi = {
system = "aarch64-windows";
rust.config = "aarch64-unknown-uefi";
useLLVM = true;
libc = null;
};

#
# Redox
#
Expand Down

0 comments on commit b5fd33b

Please sign in to comment.