Recent CMake change made the unused argument warning more strict:
https://gitlab.kitware.com/cmake/cmake/-/commit/950effe434623b50a1c85e2c53ed592210e79ceb
After that change, runtimes build started failing. Upon investigation,
it turned out that our --unwindlib=none and -nostdlib++ checks weren't
correct since the flags wouldn't be correct wrapped in
--{start,end}-no-unused-arguments. Furthermore, the
llvm_check_compiler_linker_flag macro wouldn't correctly propagate the
flag.
I think you mean Until the minimum CMake version is 3.18, since check_linker_flag was introduced in CMake 3.18.