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

Tristan Ross via libc-commits libc-commits at lists.llvm.org
Fri Dec 20 15:50:32 PST 2024


RossComputerGuy wrote:

Prints almost works:
```
clang-20 a.c -target aarch64-uefi -o uefi/a.efi -B fakeroot/var/empty/local/lib/ -I fakeroot/var/empty/local/include/ fakeroot/var/empty/local/lib/crt1.o libc/src/stdio/uefi/CMakeFiles/libc.src.stdio.uefi.puts.dir/puts.cpp.o libc/src/__support/UEFI/CMakeFiles/libc.src.__support.UEFI.file.dir/file.cpp.o  libc/src/string/CMakeFiles/libc.src.string.strlen.dir/strlen.cpp.o
```
```
Shell> FS0:
FS0:\> a.efi
Hlo
```
```c
#include <stdio.h>

int main() {
  return puts("Hello\r\n");
}
```

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


More information about the libc-commits mailing list