FindLibEdit uses pkg-config to find the necessary flags, but this may break with cross-compilation, because the PkgConfig module in CMake doesn't respect the SYSROOT specified in a toolchain file. Instead of taking the parameters from pkg-config for granted, we check whether our compiler can actually include and link against the library.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hi, this works for me. I successfully cross-compiling llvm from x86 to riscv by applying this patch. Thanks a lot.
But you may still need to wait for paulkirth's comment to verify that it works on Fuchsia's clang CI as well.
Comment Actions
I think this is probably fine. Locally it seems to work as expected. so LGTM from me.
I'll try restoring the old config after this lands to confirm.