2014-11-24 18:43:37 +00:00
|
|
|
This patch adjusts clang's default include path add a FreeBSD base system
|
|
|
|
specific directory.
|
2014-03-18 22:07:45 +00:00
|
|
|
|
2014-05-24 22:27:31 +00:00
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/208961
|
2014-03-18 22:07:45 +00:00
|
|
|
|
|
|
|
Index: tools/clang/lib/Frontend/InitHeaderSearch.cpp
|
|
|
|
===================================================================
|
|
|
|
--- tools/clang/lib/Frontend/InitHeaderSearch.cpp
|
|
|
|
+++ tools/clang/lib/Frontend/InitHeaderSearch.cpp
|
|
|
|
@@ -14,6 +14,7 @@
|
|
|
|
#include "clang/Frontend/Utils.h"
|
|
|
|
#include "clang/Basic/FileManager.h"
|
|
|
|
#include "clang/Basic/LangOptions.h"
|
|
|
|
+#include "clang/Basic/Version.h"
|
|
|
|
#include "clang/Config/config.h" // C_INCLUDE_DIRS
|
|
|
|
#include "clang/Lex/HeaderSearch.h"
|
|
|
|
#include "clang/Lex/HeaderSearchOptions.h"
|
2014-11-24 18:43:37 +00:00
|
|
|
@@ -336,6 +337,9 @@ void InitHeaderSearch::AddDefaultCIncludePaths(con
|
|
|
|
break;
|
2014-03-18 22:07:45 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
+ case llvm::Triple::FreeBSD:
|
|
|
|
+ AddPath("/usr/include/clang/" CLANG_VERSION_STRING, System, false);
|
|
|
|
+ break;
|
|
|
|
default:
|
|
|
|
break;
|
2014-11-24 18:43:37 +00:00
|
|
|
}
|