When building 13.0.0 with CMake variable CMAKE_CXX_COMPILER set to clang (also version 13.0.0) and LLVM_USE_LINKER set to ld.lld.exe (also version 13.0.0) the following warning shows up:
clang-13: warning: '-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead [-Wfuse-ld-path]
So somewhere in the CMake configuration something needs to be changed to avoid this warning.
The build works fine though and the error can be avoided by adding -fuse-ld=lld to CMAKE_CXX_FLAGS and not setting LLVM_USE_LINKER.
When building 13.0.0 with CMake variable
CMAKE_CXX_COMPILER
set toclang
(also version 13.0.0) andLLVM_USE_LINKER
set told.lld.exe
(also version 13.0.0) the following warning shows up:So somewhere in the CMake configuration something needs to be changed to avoid this warning.
The build works fine though and the error can be avoided by adding
-fuse-ld=lld
toCMAKE_CXX_FLAGS
and not settingLLVM_USE_LINKER
.