[all-commits] [llvm/llvm-project] ac1143: [libc] Fix missing sysroot path for kernel headers...
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Fri Jul 19 08:20:40 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d
https://github.com/llvm/llvm-project/commit/ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2024-07-19 (Fri, 19 Jul 2024)
Changed paths:
M libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
M libc/src/time/linux/nanosleep.cpp
Log Message:
-----------
[libc] Fix missing sysroot path for kernel headers when crosscompiling (#99588)
When crosscompiling, we need to search for the linux kernel headers in the sysroot but since #97486 the linux kernel headers were always searched in /usr/include.
This patch fixes this behaviour by prepending a '=' to where we search for the kernel headers. As per the gcc/clang's documentation a '=' before the path is replaced by the sysroot.
This patch also includes a fix for rv32, that fails to compile due to a missing definition of CLOCK_REALTIME after this change.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list