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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to