mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-30 02:48:20 +00:00
Merge remote-tracking branch 'origin/13' into snapshot
This commit is contained in:
commit
308d0b5c2b
28
debian/changelog
vendored
28
debian/changelog
vendored
@ -49,6 +49,15 @@ llvm-toolchain-snapshot (1:14~++20210715093511+afc760ef3527-1~exp2) unstable; ur
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 06 Aug 2021 08:40:58 +0200
|
||||
|
||||
llvm-toolchain-13 (1:13.0.0~+rc2-2) UNRELEASED; urgency=medium
|
||||
|
||||
* Build with -DCMAKE_POSITION_INDEPENDENT_CODE=ON to libc++ and libc++abi
|
||||
|
||||
[ John Paul Adrian Glaubitz ]
|
||||
* Disable libunwind-X.Y{-dev} packages on sparc and sparc64
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 29 Aug 2021 14:52:16 +0200
|
||||
|
||||
llvm-toolchain-13 (1:13.0.0~+rc1-2) unstable; urgency=medium
|
||||
|
||||
* clang-soname-extract-version.diff: improve the upstream declaration
|
||||
@ -155,11 +164,19 @@ llvm-toolchain-snapshot (1:13~++20210129063721+010b176cdefb-1~exp1) experimental
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 30 Jan 2021 17:31:15 +0100
|
||||
|
||||
llvm-toolchain-12 (1:12.0.1-7) UNRELEASED; urgency=medium
|
||||
llvm-toolchain-12 (1:12.0.1-7) unstable; urgency=medium
|
||||
|
||||
* Add debian/source/options to ignore the diff (much much faster to repack)
|
||||
* cmake: use ON instead of YES for consistency
|
||||
* Don't generate the llvm-mcmarkup & lldb-mi manpages (don't exist anymore)
|
||||
(LP: #1940713)
|
||||
|
||||
[ Gianfranco Costamagna ]
|
||||
* Add a patch to fix omp build on riscv64
|
||||
* Don't build lldb on riscv64, fails to build due to missing
|
||||
CreateHostNativeRegisterContextLinux implementation on this architecture.
|
||||
|
||||
-- Gianfranco Costamagna <locutusofborg@debian.org> Fri, 27 Aug 2021 10:43:26 +0200
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 31 Aug 2021 20:56:40 +0200
|
||||
|
||||
llvm-toolchain-12 (1:12.0.1-6) unstable; urgency=medium
|
||||
|
||||
@ -528,6 +545,13 @@ llvm-toolchain-snapshot (1:12~++20200715052739+d6e79e3dd6d-1~exp1) experimental;
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 08 Jul 2020 15:19:14 +0200
|
||||
|
||||
llvm-toolchain-11 (1:11.1.0-1~exp3) UNRELEASED; urgency=medium
|
||||
|
||||
* Cherry-pick upstream commit to fix a libgl1-mesa-dri texture failure.
|
||||
(Closes: #989545)
|
||||
|
||||
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 01 Sep 2021 12:24:34 +0200
|
||||
|
||||
llvm-toolchain-11 (1:11.1.0-1~exp2) experimental; urgency=medium
|
||||
|
||||
* Fix the default binary path for scan-build-py to clang-11 (instead of
|
||||
|
||||
16
debian/control
vendored
16
debian/control
vendored
@ -491,8 +491,8 @@ Description: LLVM-based linker, header files
|
||||
# ------------- lldb -------------
|
||||
|
||||
Package: lldb-14
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 riscv64
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha s390x sparc64 have been removed
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 have been removed
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm14 (= ${binary:Version}), llvm-14-dev,
|
||||
python3-lldb-14
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
@ -502,8 +502,8 @@ Description: Next generation, high-performance debugger
|
||||
Project, such as the Clang expression parser and LLVM disassembler.
|
||||
|
||||
Package: liblldb-14
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 riscv64
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha s390x sparc64 have been removed
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 have been removed
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libllvm14 (= ${binary:Version})
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Section: libs
|
||||
@ -516,8 +516,8 @@ Description: Next generation, high-performance debugger, library
|
||||
|
||||
Package: python3-lldb-14
|
||||
Section: python
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 riscv64
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha s390x sparc64 have been removed
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 have been removed
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, liblldb-14 (= ${binary:Version}), python3-six
|
||||
Conflicts: python3-lldb-x.y
|
||||
Replaces: python3-lldb-x.y
|
||||
@ -532,8 +532,8 @@ Description: Next generation, high-performance debugger, python3 lib
|
||||
|
||||
Package: liblldb-14-dev
|
||||
Section: libdevel
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32 riscv64
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha s390x sparc64 have been removed
|
||||
Architecture: amd64 arm64 armel armhf i386 mips mipsel mips64el ppc64el kfreebsd-amd64 kfreebsd-i386 s390 s390x sparc hppa m68k sh4 x32
|
||||
# ia64 hurd powerpc powerpcspe ppc64 alpha riscv64 s390x sparc64 have been removed
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, lldb-14 (= ${binary:Version})
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Description: Next generation, high-performance debugger, header files
|
||||
|
||||
1
debian/llvm-X.Y.lintian-overrides.in
vendored
1
debian/llvm-X.Y.lintian-overrides.in
vendored
@ -1,7 +1,6 @@
|
||||
# I know but well...
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-dwarfdump-@LLVM_VERSION@.1.gz
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-mc-@LLVM_VERSION@.1.gz
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-mcmarkup-@LLVM_VERSION@.1.gz
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-objdump-@LLVM_VERSION@.1.gz
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-rtdyld-@LLVM_VERSION@.1.gz
|
||||
llvm-@LLVM_VERSION@: manpage-has-useless-whatis-entry usr/share/man/man1/llvm-size-@LLVM_VERSION@.1.gz
|
||||
|
||||
1
debian/llvm-X.Y.manpages.in
vendored
1
debian/llvm-X.Y.manpages.in
vendored
@ -1,7 +1,6 @@
|
||||
docs/_build/man/*
|
||||
debian/man/llvm-dwarfdump-@LLVM_VERSION@.1
|
||||
debian/man/llvm-mc-@LLVM_VERSION@.1
|
||||
debian/man/llvm-mcmarkup-@LLVM_VERSION@.1
|
||||
debian/man/llvm-objdump-@LLVM_VERSION@.1
|
||||
debian/man/llvm-rtdyld-@LLVM_VERSION@.1
|
||||
debian/man/llvm-size-@LLVM_VERSION@.1
|
||||
|
||||
17
debian/qualify-clang.sh
vendored
17
debian/qualify-clang.sh
vendored
@ -68,6 +68,11 @@ if ! grep -q -E "scan-build: 0 bugs found." foo.log; then
|
||||
fi
|
||||
rm -rf scan-build
|
||||
|
||||
if test ! -f /usr/bin/clang-tidy-$VERSION; then
|
||||
echo "Install clang-tidy-$VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo 'namespace mozilla {
|
||||
namespace dom {
|
||||
void foo();
|
||||
@ -955,6 +960,18 @@ clang++-$VERSION -stdlib=libc++ -static-libstdc++ -fuse-ld=lld -l:libc++abi.a te
|
||||
clang++-$VERSION -stdlib=libc++ -nostdlib++ test.cpp -l:libc++.a -l:libc++abi.a -pthread -o test
|
||||
./test > /dev/null
|
||||
|
||||
# bug https://bugs.llvm.org/show_bug.cgi?id=43604
|
||||
|
||||
cat > test.cpp << EOF
|
||||
#include <iostream>
|
||||
__attribute__((visibility("default")))
|
||||
extern "C" void plugin() {
|
||||
std::cout << "Hello World from a plugin!" << std::endl;
|
||||
}
|
||||
EOF
|
||||
clang++-$VERSION -shared -o plugin.so -fvisibility=hidden foo.cpp -static-libstdc++ || true
|
||||
clang++-$VERSION -shared -o plugin.so -fvisibility=hidden foo.cpp -stdlib=libc++ -static-libstdc++ ||true
|
||||
|
||||
# Bug 889832
|
||||
echo '#include <iostream>
|
||||
int main() {}' | clang++-$VERSION -std=c++1z -x c++ -stdlib=libc++ -
|
||||
|
||||
112
debian/rules
vendored
112
debian/rules
vendored
@ -7,9 +7,6 @@ TARGET_BUILD := build-llvm
|
||||
TARGET_BUILD_STAGE2 := $(TARGET_BUILD)/tools/clang/stage2-bins
|
||||
DEB_INST := $(CURDIR)/debian/tmp/
|
||||
|
||||
# Disable to move the previous method
|
||||
BUILD_METHOD := stage2
|
||||
|
||||
GXX_VERSIONED_PACKAGE := $(shell dpkg-query -W -f '$${Depends}' g++ | grep -o 'g++-[0-9][0-9.]*' | tail -n1 )
|
||||
GXX_VERSIONED_EXECUTABLE := $(shell dpkg -L $(GXX_VERSIONED_PACKAGE) | grep '/usr/bin/g++-[0-9][0-9.]*' | xargs ls -d | tail -n1 )
|
||||
GCC_VERSION := $(subst /usr/bin/g++-,,$(GXX_VERSIONED_EXECUTABLE))
|
||||
@ -107,7 +104,7 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
||||
# See http://lists.llvm.org/pipermail/llvm-dev/2016-May/099761.html
|
||||
CMAKE_EXTRA += -DCOMPILER_RT_BUILD_BUILTINS=OFF
|
||||
# Check for ancient libstdc++ fails due to atomics usage
|
||||
CMAKE_EXTRA_LIBCXX += -DLLVM_COMPILER_CHECKED=ON
|
||||
CMAKE_LIBCXX_EXTRA += -DLLVM_COMPILER_CHECKED=ON
|
||||
# Prevent clang from getting a > v4t default
|
||||
# See bug #868779
|
||||
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi
|
||||
@ -204,7 +201,6 @@ ifneq (,$(filter $(DEB_HOST_ARCH), m68k mips mipsel powerpc powerpcspe sparc64 s
|
||||
OPENMP_ENABLE=no
|
||||
else
|
||||
PROJECTS+=;openmp
|
||||
# CMAKE_EXTRA += -DLIBOMPTARGET_BUILD_NVPTX_BCLIB=ON -DLLVM_ENABLE_RUNTIMES=openmp
|
||||
endif
|
||||
|
||||
# Enable libunwind (or not)
|
||||
@ -212,8 +208,9 @@ LIBUNWIND_ENABLE=yes
|
||||
ifneq (,$(filter $(DEB_HOST_ARCH), s390x armel m68k mipsel hurd-i386 powerpc sparc64 x32))
|
||||
LIBUNWIND_ENABLE=no
|
||||
else
|
||||
PROJECTS+=;libunwind
|
||||
CMAKE_LIBCXX_EXTRA += -DLIBCXXABI_USE_LLVM_UNWINDER=YES
|
||||
PROJECTS += ;libunwind
|
||||
CMAKE_LIBCXX_EXTRA += -DLIBCXXABI_USE_LLVM_UNWINDER=ON \
|
||||
-DLIBUNWIND_USE_COMPILER_RT=ON
|
||||
endif
|
||||
|
||||
RUN_TEST=yes
|
||||
@ -263,7 +260,7 @@ else
|
||||
endif
|
||||
|
||||
LLDB_ENABLE=yes
|
||||
LLDB_DISABLE_ARCHS := hurd-i386 ia64 powerpc powerpcspe ppc64 sparc64
|
||||
LLDB_DISABLE_ARCHS := hurd-i386 ia64 powerpc powerpcspe ppc64 riscv64 sparc64
|
||||
# hurd has threading issues
|
||||
ifeq (,$(filter-out $(LLDB_DISABLE_ARCHS), $(DEB_HOST_ARCH)))
|
||||
# Disable LLDB for this arch.
|
||||
@ -333,6 +330,7 @@ endif
|
||||
|
||||
# For some reasons, some spaces are added, removing them
|
||||
PROJECTS_LIST := $(shell echo "$(PROJECTS)"|sed -e "s| ||g")
|
||||
#RUNTIMES_LIST := $(shell echo "$(RUNTIMES)"|sed -e "s| ||g")
|
||||
|
||||
preconfigure:
|
||||
|
||||
@ -349,6 +347,7 @@ preconfigure:
|
||||
@echo "DISTRO=$(DISTRO)"
|
||||
@echo "GCC_VERSION=$(GCC_VERSION)"
|
||||
@echo "PROJECTS=$(PROJECTS_LIST)"
|
||||
# @echo "RUNTIMES=$(RUNTIMES_LIST)"
|
||||
@echo "LLVM_VERSION=$(LLVM_VERSION)"
|
||||
@echo "LLVM_VERSION_FULL=$(LLVM_VERSION_FULL)"
|
||||
@echo "LLVM_VERSION_SNAPSHOT=$(LLVM_VERSION_SNAPSHOT)"
|
||||
@ -411,14 +410,14 @@ override_dh_auto_configure: preconfigure
|
||||
|
||||
echo "Running tests: $(RUN_TEST)"
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd $(TARGET_BUILD) && \
|
||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH $(PRE_PROCESS_CONF) $(CMAKE_BIN) ../llvm/ \
|
||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH $(PRE_PROCESS_CONF) $(CMAKE_BIN) -S llvm/ -B $(TARGET_BUILD) \
|
||||
-DLLVM_ENABLE_PROJECTS="$(PROJECTS_LIST)" \
|
||||
-DCMAKE_SUPPRESS_REGENERATION=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$(opt_flags)" \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_INSTALL_UTILS=ON \
|
||||
-DLLVM_VERSION_SUFFIX= \
|
||||
@ -427,7 +426,6 @@ override_dh_auto_configure: preconfigure
|
||||
-DLLVM_ENABLE_RTTI=ON \
|
||||
-DLLVM_ENABLE_FFI=ON \
|
||||
-DLLVM_ENABLE_DUMP=ON \
|
||||
$(CMAKE_EXTRA) \
|
||||
-DLIBCLANG_LIBRARY_VERSION=$(SONAME_EXT) \
|
||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||
-DENABLE_LINKER_BUILD_ID=ON \
|
||||
@ -455,19 +453,19 @@ VERBOSE=VERBOSE=1
|
||||
#VERBOSE=-v
|
||||
|
||||
debian-full-build:
|
||||
$(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CFLAGS="$(CFLAGS_EXTRA)" CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 $(BUILD_METHOD)
|
||||
$(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CFLAGS="$(CFLAGS_EXTRA)" CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 stage2
|
||||
|
||||
# Check the stage 2 build worked
|
||||
if test "$(BUILD_METHOD)" = "stage2"; then \
|
||||
if ! readelf --string-dump .comment $(TARGET_BUILD_STAGE2)/bin/clang 2>&1|grep -q "clang version"; then \
|
||||
echo "clang hasn't been built using clang. Bye bye. Check that the stage2 build has been done."; \
|
||||
exit 2; \
|
||||
fi; \
|
||||
fi
|
||||
if ldd $(TARGET_BUILD_STAGE2)/lib/libclang-$(LLVM_VERSION).so.1|grep -q libclang-cpp-$(LLVM_VERSION); then \
|
||||
echo "libclang-$(LLVM_VERSION).so.1 depends on libclang-cpp. Should not be the case"; \
|
||||
exit 2; \
|
||||
fi
|
||||
# $(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CFLAGS="$(CFLAGS_EXTRA)" CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 runtimes
|
||||
|
||||
touch $@
|
||||
|
||||
debian-libfuzzer-build:
|
||||
@ -481,6 +479,7 @@ ifeq (${LIBFUZZER_ENABLE},yes)
|
||||
endif
|
||||
touch $@
|
||||
|
||||
# The various options to build libc++ and libc++abi
|
||||
|
||||
LIBCXX_CMAKE_OPTIONS := \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-$(LLVM_VERSION) \
|
||||
@ -496,50 +495,58 @@ LIBCXX_CMAKE_OPTIONS := \
|
||||
-DCMAKE_RANLIB=$(CURDIR)/$(TARGET_BUILD_STAGE2)/bin/llvm-ranlib \
|
||||
-DLLVM_EXTERNAL_LIT=$(BASE_PATH)/llvm/utils/lit/lit.py \
|
||||
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON \
|
||||
-DLIBCXX_USE_COMPILER_RT=YES \
|
||||
-DLIBCXXABI_USE_COMPILER_RT=YES \
|
||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF \
|
||||
$(CMAKE_EXTRA) \
|
||||
$(CMAKE_EXTRA_LIBCXX)
|
||||
|
||||
debian-libcxx-build:
|
||||
# Builds libcxx
|
||||
|
||||
mkdir -p libcxx/build
|
||||
mkdir -p libcxxabi/build
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd libcxxabi/build && \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) ../ \
|
||||
$(LIBCXX_CMAKE_OPTIONS) \
|
||||
-DLIBCXXABI_LIBCXX_PATH=$(BASE_PATH)/libcxx \
|
||||
-DLIBCXXABI_LIBCXX_LIBRARY_PATH=$(BASE_PATH)/libcxx/build/lib \
|
||||
-DLIBCXXABI_LIBCXX_INCLUDES=$(BASE_PATH)/$(TARGET_BUILD_STAGE2)/include/c++/v1/ \
|
||||
-DLIBCXXABI_ENABLE_EXCEPTIONS=$(LIBCXX_EXCEPTIONS) \
|
||||
-DLLVM_ENABLE_RTTI=ON \
|
||||
$(CMAKE_LIBCXX_EXTRA) && \
|
||||
$(PRE_PROCESS) make $(NJOBS) $(VERBOSE) CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)"
|
||||
touch $@
|
||||
$(CMAKE_EXTRA)
|
||||
|
||||
debian-libcxxabi-build:
|
||||
# Builds libcxxabi
|
||||
|
||||
mkdir -p libcxxabi/build
|
||||
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd libcxx/build && \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) ../ \
|
||||
cd libcxxabi && \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) \
|
||||
-S . -B build \
|
||||
$(LIBCXX_CMAKE_OPTIONS) \
|
||||
-DLIBCXXABI_LIBCXX_PATH=$(BASE_PATH)/libcxx \
|
||||
-DLIBCXXABI_LIBCXX_LIBRARY_PATH=$(BASE_PATH)/libcxx/build/lib \
|
||||
-DLIBCXXABI_LIBCXX_INCLUDES=$(BASE_PATH)/libcxx/include \
|
||||
-DLIBCXXABI_ENABLE_EXCEPTIONS=$(LIBCXX_EXCEPTIONS) \
|
||||
-DLIBCXXABI_USE_COMPILER_RT=YES \
|
||||
-DLLVM_ENABLE_RTTI=ON \
|
||||
$(CMAKE_LIBCXX_EXTRA) && cd build && \
|
||||
$(PRE_PROCESS) make $(NJOBS) $(VERBOSE) CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)"
|
||||
touch $@
|
||||
|
||||
# Fails with $<TARGET_LINKER_FILE:unwind_static>
|
||||
# No target "unwind_static"
|
||||
# on 12. Will test with 13
|
||||
# -DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \
|
||||
# -DLIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY=OFF \
|
||||
# -DLIBCXXABI_STATICALLY_LINK_UNWINDER_IN_STATIC_LIBRARY=ON \
|
||||
N
|
||||
#- to libc++ when libunwind is built
|
||||
#- Matches what is done on brew:
|
||||
#- https://bit.ly/3kDNpC9
|
||||
|
||||
debian-libcxx-build:
|
||||
# Builds libcxx
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd libcxx && \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) \
|
||||
-S . -B build \
|
||||
$(LIBCXX_CMAKE_OPTIONS) \
|
||||
-DLIBCXX_CXX_ABI=libcxxabi \
|
||||
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=$(BASE_PATH)/libcxxabi/include \
|
||||
-DLIBCXX_CXX_ABI_LIBRARY_PATH=$(BASE_PATH)/libcxxabi/build/lib \
|
||||
-DLIBCXX_ENABLE_EXCEPTIONS=$(LIBCXX_EXCEPTIONS) \
|
||||
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=ON \
|
||||
$(CMAKE_LIBCXX_EXTRA) && \
|
||||
-DLIBCXX_USE_COMPILER_RT=YES \
|
||||
-DLIBCXX_USE_COMPILER_RT=ON \
|
||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF \
|
||||
$(CMAKE_LIBCXX_EXTRA) && cd build && \
|
||||
$(PRE_PROCESS) make $(NJOBS) $(VERBOSE) CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)"
|
||||
touch $@
|
||||
|
||||
|
||||
debian-libclc-build:
|
||||
# Builds libclc
|
||||
|
||||
@ -560,7 +567,7 @@ debian-libclc-build:
|
||||
make $(NJOBS) $(VERBOSE)
|
||||
touch $@
|
||||
|
||||
override_dh_auto_build: debian-full-build debian-libfuzzer-build debian-libcxx-build debian-libcxxabi-build debian-libclc-build
|
||||
override_dh_auto_build: debian-full-build debian-libfuzzer-build debian-libcxxabi-build debian-libcxx-build debian-libclc-build
|
||||
|
||||
override_dh_prep: build_doc
|
||||
dh_prep
|
||||
@ -604,7 +611,7 @@ endif
|
||||
help2man --no-info --version-string=$(LLVM_VERSION) clang/tools/scan-view/bin/scan-view > debian/man/scan-view-$(LLVM_VERSION).1 || true
|
||||
help2man --no-info --version-string=$(LLVM_VERSION) clang/tools/clang-format/clang-format-diff.py > debian/man/clang-format-diff-$(LLVM_VERSION).1 || true
|
||||
|
||||
CMDS="llvm-dwarfdump llvm-mc llvm-mcmarkup llvm-objdump llvm-rtdyld llvm-size llvm-ranlib lldb lldb-mi clang-format clang-repl clang clang++ clang-tblgen clang-check clang-cpp clang-tidy clang-apply-replacements clang-rename clang-query pp-trace sancov lli modularize clang-include-fixer find-all-symbols clang-reorder-fields ld.lld llvm-tblgen clang-change-namespace clang-offload-bundler clangd"; \
|
||||
CMDS="llvm-dwarfdump llvm-mc llvm-objdump llvm-rtdyld llvm-size llvm-ranlib lldb clang-format clang-repl clang clang++ clang-tblgen clang-check clang-cpp clang-tidy clang-apply-replacements clang-rename clang-query pp-trace sancov lli modularize clang-include-fixer find-all-symbols clang-reorder-fields ld.lld llvm-tblgen clang-change-namespace clang-offload-bundler clangd"; \
|
||||
for f in $$CMDS; do \
|
||||
echo "Generating manpage of $$f"; \
|
||||
LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/:/usr/lib/*/libfakeroot help2man --no-info --version-string=$(LLVM_VERSION) $(TARGET_BUILD_STAGE2)/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1 || true; \
|
||||
@ -618,11 +625,8 @@ override_dh_auto_install:
|
||||
# Clean up temporary files to make sure the install works
|
||||
rm -rf $(find $(TARGET_BUILD) -wholename '*CMakeFiles*' -not -name CMakeLists.txt -a -name "*.dir" -type d)
|
||||
# install/fast enables a make install without recompiling temporary files
|
||||
if test "$(BUILD_METHOD)" = "stage2"; then \
|
||||
$(MAKE) -C $(TARGET_BUILD) $(VERBOSE) stage2-install DESTDIR=$(DEB_INST)/; \
|
||||
else \
|
||||
$(MAKE) -C $(TARGET_BUILD) $(VERBOSE) install DESTDIR=$(DEB_INST)/; \
|
||||
fi
|
||||
$(MAKE) -C $(TARGET_BUILD) $(VERBOSE) stage2-install DESTDIR=$(DEB_INST)/
|
||||
|
||||
# Not used on Linux.
|
||||
rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/bin/argdumper
|
||||
rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/clang/clang-format-bbedit.applescript
|
||||
@ -697,9 +701,9 @@ endif
|
||||
rm -rf $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/build/utils/lit/lit/__pycache__/ \
|
||||
$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/build/utils/lit/lit/*/__pycache__/
|
||||
|
||||
|
||||
$(MAKE) -C libcxxabi/build install DESTDIR=$(DEB_INST)
|
||||
$(MAKE) -C libcxx/build install DESTDIR=$(DEB_INST)
|
||||
|
||||
$(MAKE) -C libclc/build install DESTDIR=$(DEB_INST)
|
||||
|
||||
# Rename binaries
|
||||
@ -778,7 +782,7 @@ endif
|
||||
|
||||
# Delete the target build directory to save some space on the build systems
|
||||
# All the files have been installed in $(CURDIR)/debian/tmp/ already
|
||||
rm -rf $(TARGET_BUILD)
|
||||
# rm -rf $(TARGET_BUILD)
|
||||
|
||||
|
||||
override_dh_makeshlibs:
|
||||
|
||||
1
debian/source/options
vendored
Normal file
1
debian/source/options
vendored
Normal file
@ -0,0 +1 @@
|
||||
extend-diff-ignore = "(^|/)(clang|clang-tools-extra|compiler-rt|CONTRIBUTING.md|debuginfo-tests|flang|integration-test-suite|libc|libclc|libcxx|libcxxabi|libunwind|lld|lldb|llvm|mlir|openmp|parallel-libs|polly|pstl|README.md|runtimes|utils|)"
|
||||
Loading…
Reference in New Issue
Block a user