[PATCH] D69766: [Clang][MSVC] Use GetLinkerPath like the other toolchains for consistency

John Ericson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 3 08:59:05 PST 2019


Ericson2314 created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69766

Files:
  clang/lib/Driver/ToolChains/MSVC.cpp


Index: clang/lib/Driver/ToolChains/MSVC.cpp
===================================================================
--- clang/lib/Driver/ToolChains/MSVC.cpp
+++ clang/lib/Driver/ToolChains/MSVC.cpp
@@ -578,7 +578,7 @@
   SkipSettingEnvironment:;
 #endif
   } else {
-    linkPath = TC.GetProgramPath(Linker.str().c_str());
+    linkPath = TC.GetLinkerPath();
   }
 
   auto LinkCmd = std::make_unique<Command>(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69766.227618.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191103/8b3f09bc/attachment.bin>


More information about the cfe-commits mailing list