llvm-project/cmake/Modules
Tobias Ribizel 03a09079d6 [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
2022-05-27 13:06:45 -07:00
..
EnableLanguageNolink.cmake [libunwind] Try to add --unwindlib=none while configuring and building libunwind 2021-11-05 10:10:19 +02:00
ExtendPath.cmake [cmake] Tweak warning in `extend_path` helper function 2021-12-30 07:00:50 +00:00
FindLibEdit.cmake [CMake] Make FindLibEdit.cmake more robust 2022-05-27 13:06:45 -07:00
FindPrefixFromConfig.cmake [CMake] Factor out config prefix finding logic 2022-01-07 20:16:18 +00:00
HandleCompilerRT.cmake [cmake] Demote fatal error to a warning when we don't know the Apple SDK in use 2022-03-22 15:36:47 -04:00
HandleOutOfTreeLLVM.cmake [cmake] Move HandleOutOfTreeLLVM to common cmake utils 2022-01-19 22:05:23 +00:00
LLVMCheckCompilerLinkerFlag.cmake [cmake] Partially deduplicate `{llvm,compiler_rt}_check_linker_flag` for runtime libs and llvm 2022-01-29 06:07:24 +00:00
SetPlatformToolchainTools.cmake [CMake] Move the AIX archiver settings to a module 2022-01-05 11:46:30 -08:00
SortSubset.cmake [runtimes] Generalize how we reorder projects 2022-05-16 08:55:32 -04:00