[PATCH] D53770: Support g++ headers in include/g++

David Greene via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 30 14:34:38 PDT 2018


greened updated this revision to Diff 171801.
greened edited the summary of this revision.
greened added a comment.

Explain that Cray packages gcc such that headers are in include/g++.


Repository:
  rC Clang

https://reviews.llvm.org/D53770

Files:
  lib/Driver/ToolChains/Linux.cpp


Index: lib/Driver/ToolChains/Linux.cpp
===================================================================
--- lib/Driver/ToolChains/Linux.cpp
+++ lib/Driver/ToolChains/Linux.cpp
@@ -924,6 +924,9 @@
       // Freescale SDK C++ headers are directly in <sysroot>/usr/include/c++,
       // without a subdirectory corresponding to the gcc version.
       LibDir.str() + "/../include/c++",
+      // Cray's gcc installation puts headers under "g++" without a
+      // version suffix.
+      LibDir.str() + "/../include/g++",
   };
 
   for (const auto &IncludePath : LibStdCXXIncludePathCandidates) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53770.171801.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181030/0319ccde/attachment.bin>


More information about the cfe-commits mailing list