mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-31 06:13:03 +00:00
* Build using binutls-gold to improve the quality of the binaries.
See: http://allievi.sssup.it/techblog/?p=791 * Detect the vendor (Debian or Ubuntu) and update the configuration * Port to powerpcspe. Thanks to Roland Stigge (Closes: #701587) See: 31-powerpcspe.diff * Fix the path detection of scan-build (Closes: #698352) See: 32-scan-build-path.diff
This commit is contained in:
parent
b3afa1ae85
commit
d31f21bfd5
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -1,3 +1,15 @@
|
||||
llvm-toolchain-3.2 (1:3.2repack-1~exp4) UNRELEASED; urgency=low
|
||||
|
||||
* Build using binutls-gold to improve the quality of the binaries.
|
||||
See: http://allievi.sssup.it/techblog/?p=791
|
||||
* Detect the vendor (Debian or Ubuntu) and update the configuration
|
||||
* Port to powerpcspe. Thanks to Roland Stigge (Closes: #701587)
|
||||
See: 31-powerpcspe.diff
|
||||
* Fix the path detection of scan-build (Closes: #698352)
|
||||
See: 32-scan-build-path.diff
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 14 Mar 2013 17:47:12 +0100
|
||||
|
||||
llvm-toolchain-3.2 (1:3.2repack-1~exp3) experimental; urgency=low
|
||||
|
||||
* Remove package "clang". It is now provided by llvm-defaults.
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 9.0), flex, bison, dejagnu, tcl8.5, expect,
|
||||
sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9),
|
||||
lsb-release, patchutils, diffstat, xz-utils, chrpath, python-dev,
|
||||
libedit-dev, swig, python-sphinx, ocaml-nox, binutils-dev, libcloog-isl-dev,
|
||||
libisl-dev (>= 0.11.1)
|
||||
libisl-dev (>= 0.11.1), binutils-gold
|
||||
Build-Conflicts: oprofile, ocaml
|
||||
Standards-Version: 3.9.3
|
||||
Homepage: http://www.llvm.org/
|
||||
|
36
debian/patches/31-powerpcspe.diff
vendored
Normal file
36
debian/patches/31-powerpcspe.diff
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
Index: clang-3.2/tools/clang/lib/Driver/ToolChains.cpp
|
||||
===================================================================
|
||||
--- clang-3.2.orig/tools/clang/lib/Driver/ToolChains.cpp 2013-03-15 14:54:26.000000000 +0100
|
||||
+++ clang-3.2/tools/clang/lib/Driver/ToolChains.cpp 2013-03-15 14:55:53.000000000 +0100
|
||||
@@ -1103,6 +1103,7 @@
|
||||
static const char *const PPCTriples[] = {
|
||||
"powerpc-linux-gnu",
|
||||
"powerpc-unknown-linux-gnu",
|
||||
+ "powerpc-linux-gnuspe",
|
||||
"powerpc-suse-linux",
|
||||
"powerpc-montavista-linuxspe"
|
||||
};
|
||||
@@ -2003,6 +2004,8 @@
|
||||
return "mipsel-linux-gnu";
|
||||
return TargetTriple.str();
|
||||
case llvm::Triple::ppc:
|
||||
+ if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))
|
||||
+ return "powerpc-linux-gnuspe";
|
||||
if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnu"))
|
||||
return "powerpc-linux-gnu";
|
||||
return TargetTriple.str();
|
||||
Index: clang-3.2/tools/clang/lib/Lex/Makefile
|
||||
===================================================================
|
||||
--- clang-3.2.orig/tools/clang/lib/Lex/Makefile 2013-03-15 14:54:26.000000000 +0100
|
||||
+++ clang-3.2/tools/clang/lib/Lex/Makefile 2013-03-15 14:54:55.000000000 +0100
|
||||
@@ -17,8 +17,10 @@
|
||||
LIBRARYNAME := clangLex
|
||||
|
||||
ifeq ($(ARCH),PowerPC)
|
||||
+ifneq ($(shell dpkg-architecture -qDEB_HOST_ARCH),powerpcspe)
|
||||
CXX.Flags += -maltivec
|
||||
endif
|
||||
+endif
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
13
debian/patches/32-scan-build-path.diff
vendored
Normal file
13
debian/patches/32-scan-build-path.diff
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Index: clang-3.2/tools/clang/tools/scan-build/scan-build
|
||||
===================================================================
|
||||
--- clang-3.2.orig/tools/clang/tools/scan-build/scan-build 2012-09-15 07:51:10.000000000 +0200
|
||||
+++ clang-3.2/tools/clang/tools/scan-build/scan-build 2013-03-15 15:00:05.000000000 +0100
|
||||
@@ -1459,7 +1459,7 @@
|
||||
|
||||
# Find 'clang'
|
||||
if (!defined $AnalyzerDiscoveryMethod) {
|
||||
- $Clang = Cwd::realpath("$RealBin/bin/clang");
|
||||
+ $Clang = Cwd::realpath("/usr/bin/clang");
|
||||
if (!defined $Clang || ! -x $Clang) {
|
||||
$Clang = Cwd::realpath("$RealBin/clang");
|
||||
}
|
2
debian/patches/series
vendored
2
debian/patches/series
vendored
@ -29,3 +29,5 @@ scan-build-clang-path.diff
|
||||
polly-c++0x.diff
|
||||
declare_clear_cache.diff
|
||||
#r600-snapshot.diff
|
||||
31-powerpcspe.diff
|
||||
32-scan-build-path.diff
|
||||
|
6
debian/rules
vendored
6
debian/rules
vendored
@ -9,6 +9,8 @@ ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
|
||||
NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
|
||||
endif
|
||||
|
||||
VENDOR=$(lsb_release -is)
|
||||
|
||||
DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_HOST_ARCH_BITS = $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
|
||||
@ -89,13 +91,13 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL
|
||||
--with-cloog --with-isl \
|
||||
--with-bug-report-url=http://bugs.debian.org/ \
|
||||
--enable-shared \
|
||||
CLANG_VENDOR=Debian || { cat config.log tools/polly/config.log; exit 1; }
|
||||
CLANG_VENDOR=$(VENDOR) || { cat config.log tools/polly/config.log; exit 1; }
|
||||
# cd $(TARGET_BUILD) && cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
# mkdir build-compiler-rt && cd build-compiler-rt && cmake ../compiler-rt
|
||||
# --enable-experimental-targets=R600
|
||||
|
||||
override_dh_auto_build:
|
||||
$(MAKE) $(NJOBS) -C $(TARGET_BUILD) VERBOSE=1 CLANG_VENDOR=Debian CXXFLAGS=-std=c++0x REQUIRES_RTTI=1
|
||||
$(MAKE) $(NJOBS) -C $(TARGET_BUILD) VERBOSE=1 CLANG_VENDOR=$(VENDOR) CXXFLAGS=-std=c++0x REQUIRES_RTTI=1
|
||||
cd $(CURDIR)/docs && make -f Makefile.sphinx && make -f Makefile.sphinx man
|
||||
# $(MAKE) $(NJOBS) -C build-compiler-rt VERBOSE=1
|
||||
# Only available in clang 3.3
|
||||
|
Loading…
Reference in New Issue
Block a user