mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-05 13:35:03 +00:00

* Integrate patch to fix FTBFS under IA64. * Disable the usage of binutils-gold under armel. It currently fails with: "attempt to map 2752512 bytes at offset 2066666 exceeds size of file; the file may be corrupt"
32 lines
1.7 KiB
Diff
32 lines
1.7 KiB
Diff
Index: llvm-toolchain-snapshot_3.4~svn185325/clang/lib/Driver/ToolChains.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.4~svn185325.orig/clang/lib/Driver/ToolChains.h 2013-07-01 13:27:32.000000000 +0200
|
|
+++ llvm-toolchain-snapshot_3.4~svn185325/clang/lib/Driver/ToolChains.h 2013-07-01 13:27:32.000000000 +0200
|
|
@@ -129,6 +129,8 @@
|
|
virtual bool isPICDefault() const;
|
|
virtual bool isPIEDefault() const;
|
|
virtual bool isPICDefaultForced() const;
|
|
+ virtual void AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
|
|
+ llvm::opt::ArgStringList &CC1Args) const;
|
|
|
|
protected:
|
|
virtual Tool *getTool(Action::ActionClass AC) const;
|
|
Index: llvm-toolchain-snapshot_3.4~svn185325/clang/lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.4~svn185325.orig/clang/lib/Driver/ToolChains.cpp 2013-07-01 13:27:32.000000000 +0200
|
|
+++ llvm-toolchain-snapshot_3.4~svn185325/clang/lib/Driver/ToolChains.cpp 2013-07-01 13:27:32.000000000 +0200
|
|
@@ -942,6 +942,13 @@
|
|
return GoodVersion;
|
|
}
|
|
|
|
+void Generic_GCC::AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
|
|
+ llvm::opt::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)
|