diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2024-07-19 17:20:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 12:20:16 -0300 |
commit | ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d (patch) | |
tree | 6399e38f68150aa1f00b55cd8c820224880a8d34 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 9d86722eeecbb1dd6a53c10f7c44fdc317de6809 (diff) | |
download | llvm-ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d.zip llvm-ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d.tar.gz llvm-ac11430983d0d89b7ccd8e10a1a3d02ad7e2208d.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions