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

Tristan Ross via libc-commits libc-commits at lists.llvm.org
Tue Dec 24 18:02:43 PST 2024


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

Ok, tests build now and run! To run tests, run `ninja check-libc` and let it fail executing on the host. Next, cd into the directory containing a set (`include` or `src` under `libc/test`). Collect the tests like this:
```
find . -type f -name 'libc.test.*__hermetic__.__build__' | tr '/' '\\' > startup.nsh
```
Then pass the directory you are in to QEMU, example:
```
qemu-system-aarch64 -machine virt,gic-version=max,accel=kvm:tcg -cpu max -drive if=pflash,format=raw,unit=0,readonly=on,file=/nix/store/i3d83jqxl2w85p720f88ymdxwlpaz9vf-OVMF-202408.01-fd/FV/AAVMF_CODE.fd -serial stdio -m 4G -drive file=fat:rw:/home/ross/llvm-project/runtimes/build/libc/test/include,format=raw,media=disk
```

Now all tests will run.

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


More information about the libc-commits mailing list