[libc-commits] [libc] [llvm] [libc][cmake][linux] require new LLVM_LIBC_USE_HOST_KERNEL_HEADERS or LIBC_KERNEL_HEADERS (PR #123820)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Jan 29 11:19:15 PST 2025
================
@@ -183,7 +191,9 @@ Linux headers in your sysroot. Let's build them from source.
$> make LLVM=1 INSTALL_HDR_PATH=/path/to/sysroot -C /tmp/linux headers_install
The headers can be built to target non-host architectures by adding the
-``ARCH={arm|arm64|i386}`` to the above invocation of ``make``.
+``ARCH={arm|arm64|i386}`` to the above invocation of ``make``. Then you should
+set the cmake variable `-DLIBC_KERNEL_HEADERS=/path/to/sysroot` when
----------------
michaelrj-google wrote:
for consistency, would it make sense to use `/path/to/kernel/headers/` instead of `/path/to/sysroot` here?
https://github.com/llvm/llvm-project/pull/123820
More information about the libc-commits
mailing list