Match the API for the new check_linker_flag and use it directly when available, leaving the old code as a fallback.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/cmake/modules/HandleLLVMOptions.cmake | ||
---|---|---|
892 | I don't think this is CMake's check_linker_flag but rather the one from CheckLinkerFlag.cmake. Given that this requires CMake 3.18 and we support older versios, we will continue to need the wrapper until that gets bumped. I think we should probably update the function and rename it to avoid the name collision (and maybe implement it in terms of check_linker_flag(CXX ... when the CMake version is >=3.18. |
Comment Actions
[CMake][llvm] The first argument to check_linker_flag is the language
Match the API for the new check_linker_flag and use it directly when
available, leaving the old code as a fallback.
I don't think this is CMake's check_linker_flag but rather the one from CheckLinkerFlag.cmake. Given that this requires CMake 3.18 and we support older versios, we will continue to need the wrapper until that gets bumped. I think we should probably update the function and rename it to avoid the name collision (and maybe implement it in terms of check_linker_flag(CXX ... when the CMake version is >=3.18.