[PATCH] D115045: [Clang] Ignore CLANG_DEFAULT_LINKER for custom-linker toolchains

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 3 16:17:28 PST 2021


MaskRay accepted this revision.
MaskRay added a comment.

LGTM.



================
Comment at: clang/lib/Driver/ToolChain.cpp:545
+const char *ToolChain::getDefaultLinker() const {
+  if (StringRef(CLANG_DEFAULT_LINKER).empty())
+    return "ld";
----------------
`CLANG_DEFAUALT_LINKER[0] == '\0'`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115045/new/

https://reviews.llvm.org/D115045



More information about the cfe-commits mailing list