[PATCH] D62286: [Driver] Try normalized triple when looking for C++ libraries

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 23 08:20:29 PDT 2019


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rC361504: [Driver] Try normalized triple when looking for C++ libraries (authored by phosek, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D62286?vs=200873&id=200982#toc

Repository:
  rC Clang

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

https://reviews.llvm.org/D62286

Files:
  lib/Driver/ToolChain.cpp


Index: lib/Driver/ToolChain.cpp
===================================================================
--- lib/Driver/ToolChain.cpp
+++ lib/Driver/ToolChain.cpp
@@ -80,6 +80,11 @@
     llvm::sys::path::append(P, "..", "lib", D.getTargetTriple(), "c++");
     if (getVFS().exists(P))
       getLibraryPaths().push_back(P.str());
+
+    P.assign(D.Dir);
+    llvm::sys::path::append(P, "..", "lib", Triple.str(), "c++");
+    if (getVFS().exists(P))
+      getLibraryPaths().push_back(P.str());
   }
 
   P.assign(D.ResourceDir);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62286.200982.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190523/a45ef1e9/attachment.bin>


More information about the cfe-commits mailing list