add test-keep-alive.diff to improve the keep alive for some

archs like mips*
This commit is contained in:
Sylvestre Ledru 2017-12-18 12:59:40 +00:00
parent 73506d43ca
commit 1c3a69fcc3
3 changed files with 25 additions and 1 deletions

4
debian/changelog vendored
View File

@ -27,8 +27,10 @@ llvm-toolchain-snapshot (1:6.0~svn315736-2) unstable; urgency=medium
- clang_CXXRecord_isAbstract - clang_CXXRecord_isAbstract
- clang_Cursor_getObjCManglings - clang_Cursor_getObjCManglings
- clang_getCursorTLSKind - clang_getCursorTLSKind
* add test-keep-alive.diff to improve the keep alive for some
archs like mips*
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 16 Oct 2017 10:24:33 +0200 -- Sylvestre Ledru <sylvestre@debian.org> Mon, 18 Dec 2017 13:59:34 +0100
llvm-toolchain-snapshot (1:6.0~svn315736-1) unstable; urgency=medium llvm-toolchain-snapshot (1:6.0~svn315736-1) unstable; urgency=medium

View File

@ -45,3 +45,4 @@ disable-error-xray.diff
lldb-disable-swig-error.diff lldb-disable-swig-error.diff
silent-test-macho.diff silent-test-macho.diff
silent-llvm-isel-fuzzer.diff silent-llvm-isel-fuzzer.diff
test-keep-alive.diff

21
debian/patches/test-keep-alive.diff vendored Normal file
View File

@ -0,0 +1,21 @@
Index: llvm-toolchain-5.0-5.0.1~+rc1/utils/lit/lit/ProgressBar.py
===================================================================
--- llvm-toolchain-5.0-5.0.1~+rc1.orig/utils/lit/lit/ProgressBar.py
+++ llvm-toolchain-5.0-5.0.1~+rc1/utils/lit/lit/ProgressBar.py
@@ -189,15 +189,7 @@ class SimpleProgressBar:
return
for i in range(self.atIndex, next):
- idx = i % 5
- if idx == 0:
- sys.stdout.write('%-2d' % (i*2))
- elif idx == 1:
- pass # Skip second char
- elif idx < 4:
- sys.stdout.write('.')
- else:
- sys.stdout.write(' ')
+ sys.stdout.write('%-2d ' % (i*2))
sys.stdout.flush()
self.atIndex = next