mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-12 11:06:17 +00:00
32 lines
1.6 KiB
Diff
32 lines
1.6 KiB
Diff
Index: llvm-toolchain-snapshot_3.4~svn183420/clang/lib/Driver/ToolChains.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.4~svn183420.orig/clang/lib/Driver/ToolChains.h 2013-06-05 06:28:55.000000000 +0200
|
|
+++ llvm-toolchain-snapshot_3.4~svn183420/clang/lib/Driver/ToolChains.h 2013-06-06 18:37:07.000000000 +0200
|
|
@@ -125,6 +125,8 @@
|
|
virtual bool isPICDefault() const;
|
|
virtual bool isPIEDefault() const;
|
|
virtual bool isPICDefaultForced() const;
|
|
+ virtual void AddClangSystemIncludeArgs(const ArgList &DriverArgs,
|
|
+ ArgStringList &CC1Args) const;
|
|
|
|
protected:
|
|
virtual Tool *getTool(Action::ActionClass AC) const;
|
|
Index: llvm-toolchain-snapshot_3.4~svn183420/clang/lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.4~svn183420.orig/clang/lib/Driver/ToolChains.cpp 2013-06-06 18:36:59.000000000 +0200
|
|
+++ llvm-toolchain-snapshot_3.4~svn183420/clang/lib/Driver/ToolChains.cpp 2013-06-06 18:37:07.000000000 +0200
|
|
@@ -952,6 +952,13 @@
|
|
return GoodVersion;
|
|
}
|
|
|
|
+void Generic_GCC::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
|
|
+ ArgStringList &CC1Args) const {
|
|
+ // Under Debian, clang headers are installed into
|
|
+ // '/usr/include/clang/VERSION/include/'
|
|
+ addSystemInclude(DriverArgs, CC1Args, "/usr/include/clang/" + std::string(CLANG_VERSION_STRING) + "/include/");
|
|
+}
|
|
+
|
|
/// \brief Less-than for GCCVersion, implementing a Strict Weak Ordering.
|
|
bool Generic_GCC::GCCVersion::operator<(const GCCVersion &RHS) const {
|
|
if (Major != RHS.Major)
|