This patch is to fix http://llvm.org/bugs/show_bug.cgi?id=8031 - the
hardcoded versioned include path seems to have fallen out-of-sync with
what the actual include path created by the build system is - the bug
seems to have started happening since Clang hit version 1.1 (2.7?).
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp	(revision 112455)
+++ lib/Driver/ToolChains.cpp	(working copy)
@@ -1084,7 +1084,8 @@
 
 Linux::Linux(const HostInfo &Host, const llvm::Triple& Triple)
   : Generic_GCC(Host, Triple) {
-  getFilePaths().push_back(getDriver().Dir + "/../lib/clang/1.0/");
+  getFilePaths().push_back(getDriver().Dir +
+                           "/../lib/clang/" CLANG_VERSION_STRING "/");
   getFilePaths().push_back("/lib/");
   getFilePaths().push_back("/usr/lib/");
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to