This patch changes the default linker for clang on PowerPC Linux to lld.
Here is a summary of the expected behaviour before and after this patch:
To use lld as the linker before this patch:
- build with lld in LLVM_ENABLE_PROJECTS
- build with -DCLANG_DEFAULT_LINKER=lld
To use lld as the linker after this patch:
- build with lld in LLVM_ENABLE_PROJECTS
To use ld as the linker before this patch:
- default behaviour
To use ld as the linker after this patch:
- build with -DCLANG_DEFAULT_LINKER=<PATH_TO_LD>
Note: After this patch, if you build clang for PowerPC Linux and lld is not
included in LLVM_ENABLE_PROJECTS, the built compiler will report an error
during linking because it will not be able to find ld.lld. Therefore, anyone
using the default behaviour before this patch will need to modify their build
configuration to either:
- include -DCLANG_DEFAULT_LINKER=<PATH_TO_LD> to continue using ld or
- include lld in LLVM_ENABLE_PROJECTS to switch to lld.