aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail@igalia.com>2024-07-19 17:20:16 +0200
committerGitHub <noreply@github.com>2024-07-19 12:20:16 -0300
commitac11430983d0d89b7ccd8e10a1a3d02ad7e2208d (patch)
tree6399e38f68150aa1f00b55cd8c820224880a8d34 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent9d86722eeecbb1dd6a53c10f7c44fdc317de6809 (diff)
downloadllvm-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