Fix the FTBFS under HURD (hurd-endian.diff)

This commit is contained in:
Sylvestre Ledru 2013-06-05 09:14:07 +00:00
parent 1a9e46d4e3
commit d5fa32f730
3 changed files with 16 additions and 0 deletions

1
debian/changelog vendored
View File

@ -3,6 +3,7 @@ llvm-toolchain-3.3 (1:3.3~+rc3-1~exp2) UNRELEASED; urgency=low
* Do not use binutils-gold for powerpc
* Print the lldb test failures
* Create the compiler-rt directory for unsupported platforms
* Fix the FTBFS under HURD (hurd-endian.diff)
--

13
debian/patches/hurd-endian.diff vendored Normal file
View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.3-3.3~0rc2/include/llvm/Support/Host.h
===================================================================
--- llvm-toolchain-3.3-3.3~0rc2.orig/include/llvm/Support/Host.h 2013-04-15 22:13:59.000000000 +0200
+++ llvm-toolchain-3.3-3.3~0rc2/include/llvm/Support/Host.h 2013-06-05 11:13:28.000000000 +0200
@@ -16,7 +16,7 @@
#include "llvm/ADT/StringMap.h"
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__)
#include <endian.h>
#else
#ifndef LLVM_ON_WIN32

View File

@ -19,3 +19,5 @@ declare_clear_cache.diff
33-armhf-defaults.diff
34-powerpc-no-altivec.diff
ia64-fix.diff
hurd-endian.diff