Using -fuse-ld=lld with Clang on macOS
问题 I am using Clang 10 (not AppleClang) on macOS 10.15 and am trying to link with LLD by specifying -fuse-ld=lld in the CMake flags CMAKE_EXE_LINKER_FLAGS . However, I am getting the following error when I try to use LLD: The C++ compiler "/Users/XXX/llvm/bin/clang++" is not able to compile a simple test program. It fails with the following output: ld64.lld: warning: ignoring unknown argument: -platform_version ld64.lld: warning: ignoring unknown argument: -search_paths_first ld64.lld: warning: