[libc-commits] [libc] [libc] init uefi os target (PR #120687)

Tristan Ross via libc-commits libc-commits at lists.llvm.org
Tue Dec 24 20:45:30 PST 2024


================
@@ -0,0 +1,473 @@
+set(TARGET_LIBC_ENTRYPOINTS
+    libc.src.compiler.__stack_chk_fail
+
+    # ctype.h entrypoints
----------------
RossComputerGuy wrote:

We now have a test driver in `libc/testing/scripts/uefi_runner.py`. To use it, install OVMF for the system you're compiling for. Arch Linux has `edk2-ovmf` and NixOS has `pkgs.OVMF`. Just set `CMAKE_CROSSCOMPILING_EMULATOR` to the script. If OVMF is not at the path the script expects, use `$OVMF_PATH` to set it to the directory it exists at.

https://github.com/llvm/llvm-project/pull/120687


More information about the libc-commits mailing list