[PATCH] D25700: [Driver] Use stem rather than filename for executable name

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 17 15:12:19 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL284430: [Driver] Use stem rather than filename for executable name (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D25700?vs=74905&id=74917#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25700

Files:
  cfe/trunk/lib/Driver/Tools.cpp


Index: cfe/trunk/lib/Driver/Tools.cpp
===================================================================
--- cfe/trunk/lib/Driver/Tools.cpp
+++ cfe/trunk/lib/Driver/Tools.cpp
@@ -10060,7 +10060,7 @@
   Args.ClaimAllArgs(options::OPT_w);
 
   const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
-  if (llvm::sys::path::filename(Exec).equals_lower("lld")) {
+  if (llvm::sys::path::stem(Exec).equals_lower("lld")) {
     CmdArgs.push_back("-flavor");
     CmdArgs.push_back("gnu");
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25700.74917.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161017/6d2ef661/attachment.bin>


More information about the cfe-commits mailing list