[cmake] Duplicate `{llvm,compiler_rt}_check_linker_flag` for runtime libs and llvm
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 18 Jan 2022 23:34:54 +0000 (23:34 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Thu, 20 Jan 2022 21:18:42 +0000 (21:18 +0000)
commit4af11272f57a4a6fed2932e9e0857b2c1a707c51
treec50b4cef24904dd73eecae5dd9b364f40ab37257
parent8c9f62ea90c70d538766a81ef5980c9223b8566b
[cmake] Duplicate `{llvm,compiler_rt}_check_linker_flag` for runtime libs and llvm

We previously had a few varied definitions of this floating around. I made the one installed with LLVM handle all the cases, and then made the others use it.

This issue was reported to me in https://reviews.llvm.org/D116521#3248117 as
D116521 made clang and llvm use the common cmake utils.

Reviewed By: sebastian-ne, phosek, #libunwind, #libc, #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D117537
cmake/Modules/CheckLinkerFlag.cmake [deleted file]
compiler-rt/cmake/config-ix.cmake
libcxx/cmake/config-ix.cmake
libunwind/cmake/config-ix.cmake
llvm/cmake/modules/LLVMCheckLinkerFlag.cmake
runtimes/CMakeLists.txt