+++ /dev/null
---- llvm-3.7.0.src/include/llvm/CodeGen/CommandFlags.h~ 2015-07-06 19:44:26.000000000 +0200
-+++ llvm-3.7.0.src/include/llvm/CodeGen/CommandFlags.h 2015-10-11 11:59:10.130862977 +0200
-@@ -21,7 +21,7 @@
- #include "llvm/IR/Intrinsics.h"
- #include "llvm/IR/Module.h"
- #include "llvm/MC/MCTargetOptionsCommandFlags.h"
--#include "llvm//MC/SubtargetFeature.h"
-+#include "llvm/MC/SubtargetFeature.h"
- #include "llvm/Support/CodeGen.h"
- #include "llvm/Support/CommandLine.h"
- #include "llvm/Support/Host.h"
)
include_directories(.)
---- llvm-3.7.0.src/tools/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt.orig 2015-02-20 23:10:28.000000000 +0100
-+++ llvm-3.7.0.src/tools/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt 2015-10-01 21:51:35.921762208 +0200
-@@ -13,4 +13,5 @@
- lldCore
- LLVMObject
- LLVMSupport
-+ pthread
- )
--- llvm-3.7.0.src/tools/lld/lib/ReaderWriter/ELF/CMakeLists.txt.orig 2015-05-22 18:01:12.000000000 +0200
+++ llvm-3.7.0.src/tools/lld/lib/ReaderWriter/ELF/CMakeLists.txt 2015-10-02 15:51:47.415199842 +0200
@@ -17,6 +17,7 @@
DebianSqueeze,
DebianWheezy,
@@ -2820,6 +2824,10 @@
- return Distro >= UbuntuHardy && Distro <= UbuntuTrusty;
+ return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
}
+static bool IsPLD(enum Distro Distro) {
+ return Distro == PLDLinux;
+}
+
- static Distro DetectDistro(llvm::Triple::ArchType Arch) {
+ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
llvm::MemoryBuffer::getFile("/etc/lsb-release");
@@ -2888,6 +2896,9 @@
Patch1: %{name}-pld.patch
Patch2: libdir.patch
Patch3: x32-gcc-toolchain.patch
-Patch5: debuginfo-fix.patch
URL: http://llvm.org/
BuildRequires: bash
BuildRequires: bison
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch5 -p1
grep -rl /usr/bin/env tools utils | xargs sed -i -e '1{
s,^#!.*bin/env python,#!%{__python},