[PATCH] D77498: [Hexagon] Select lld as the default linker for linux-musl target
Brian Cain via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 15:49:42 PDT 2020
bcain added a comment.
In D77498#1968123 <https://reviews.llvm.org/D77498#1968123>, @sidneym wrote:
> Since this isn't something that can be always known in advance I think the testcase should just be removed.
Why not just check if `CLANG_DEFAULT_LINKER` is empty?
const char *getDefaultLinker() const override {
StringRef ClangDefault = CLANG_DEFAULT_LINKER;
return ClangDefault.isEmpty() ? (getTriple().isMusl() ? "ld.lld" : "hexagon-link") : ClangDefault.str();
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77498/new/
https://reviews.llvm.org/D77498
More information about the cfe-commits
mailing list