Merge remote-tracking branch 'origin/13' into snapshot

This commit is contained in:
Sylvestre Ledru 2021-08-09 13:08:58 +02:00
commit ae2d02698a
3 changed files with 4 additions and 3 deletions

2
debian/changelog vendored
View File

@ -92,7 +92,7 @@ llvm-toolchain-snapshot (1:13~++20210129063721+010b176cdefb-1~exp1) experimental
llvm-toolchain-12 (1:12.0.1-4) UNRELEASED; urgency=medium
* Make libunwind-dev depends on libunwind
* Don't build libunwind on armel & mipsel
* Don't build libunwind on hurd, armel, powerpc & mipsel
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 08 Aug 2021 10:58:54 +0200

View File

@ -952,7 +952,8 @@ int main() {
std::cout << "Hello World!" << std::endl;
}
EOF
clang++-$VERSION -stdlib=libc++ -unwindlib=libunwind -rtlib=compiler-rt -static-libstdc++ -static-libgcc test.cpp &> /dev/null || true
clang++-$VERSION -stdlib=libc++ -unwindlib=libunwind -rtlib=compiler-rt -static-libstdc++ -static-libgcc test.cpp -lpthread -ldl -o test
./test
clang++-$VERSION -stdlib=libc++ -static-libstdc++ -fuse-ld=lld -l:libc++abi.a test.cpp -o test
./test

2
debian/rules vendored
View File

@ -194,7 +194,7 @@ endif
# Enable libunwind (or not)
LIBUNWIND_ENABLE=yes
ifneq (,$(filter $(DEB_HOST_ARCH), s390x armel mipsel))
ifneq (,$(filter $(DEB_HOST_ARCH), s390x armel mipsel hurd-i386 powerpc))
LIBUNWIND_ENABLE=no
else
PROJECTS+=;libunwind