[all-commits] [llvm/llvm-project] 03a090: [CMake] Make FindLibEdit.cmake more robust
Tobias Ribizel via All-commits
all-commits at lists.llvm.org
Fri May 27 13:07:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03a09079d6cd6fd227868e5cd76c67f49df325ef
https://github.com/llvm/llvm-project/commit/03a09079d6cd6fd227868e5cd76c67f49df325ef
Author: Tobias Ribizel <ribizel at kit.edu>
Date: 2022-05-27 (Fri, 27 May 2022)
Changed paths:
M cmake/Modules/FindLibEdit.cmake
Log Message:
-----------
[CMake] Make FindLibEdit.cmake more robust
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.
Fixes #55445
Fixes #55671
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D126450
More information about the All-commits
mailing list