OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to build valgrind binaries for use with chromium | 7 # Script to build valgrind binaries for use with chromium |
8 | 8 |
9 THISDIR=$(dirname "${0}") | 9 THISDIR=$(dirname "${0}") |
10 THISDIR=$(cd "${THISDIR}" && /bin/pwd) | 10 THISDIR=$(cd "${THISDIR}" && /bin/pwd) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 patch -p0 < "${THISDIR}/vbug210481.patch" | 53 patch -p0 < "${THISDIR}/vbug210481.patch" |
54 | 54 |
55 # Fix/work around https://bugs.kde.org/show_bug.cgi?id=205541 | 55 # Fix/work around https://bugs.kde.org/show_bug.cgi?id=205541 |
56 # which prevented valgrind from handling wine | 56 # which prevented valgrind from handling wine |
57 patch -p0 < "${THISDIR}/vbug205541.patch" | 57 patch -p0 < "${THISDIR}/vbug205541.patch" |
58 | 58 |
59 # Add intercepts for tcmalloc memory functions. | 59 # Add intercepts for tcmalloc memory functions. |
60 # The corresponding feature request for Valgrind is at | 60 # The corresponding feature request for Valgrind is at |
61 # https://bugs.kde.org/show_bug.cgi?id=219156. | 61 # https://bugs.kde.org/show_bug.cgi?id=219156. |
62 patch -p0 < "${THISDIR}/intercept_tcmalloc.patch" | 62 patch -p0 < "${THISDIR}/intercept_tcmalloc.patch" |
| 63 |
| 64 # Fix for https://bugs.kde.org/show_bug.cgi?id=227570 |
| 65 # which causes false uninitialised memory warnings |
| 66 patch -p0 < "${THISDIR}/vbug227570.patch" |
63 # }}} | 67 # }}} |
64 | 68 |
65 # Add ThreadSanitier to the installation. | 69 # Add ThreadSanitier to the installation. |
66 # ThreadSanitizer is an experimental dynamic data race detector. | 70 # ThreadSanitizer is an experimental dynamic data race detector. |
67 # See http://code.google.com/p/data-race-test/wiki/ThreadSanitizer | 71 # See http://code.google.com/p/data-race-test/wiki/ThreadSanitizer |
68 svn checkout -r "${TSAN_SVN_REV}" http://data-race-test.googlecode.com/svn/tru
nk/tsan tsan | 72 svn checkout -r "${TSAN_SVN_REV}" http://data-race-test.googlecode.com/svn/tru
nk/tsan tsan |
69 mkdir tsan/tests | 73 mkdir tsan/tests |
70 touch tsan/tests/Makefile.am | 74 touch tsan/tests/Makefile.am |
71 patch -p0 < tsan/valgrind.patch | 75 patch -p0 < tsan/valgrind.patch |
72 # }}} | 76 # }}} |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 echo "We've tested binaries built on 9.7.0 to work with 9.6.1, 9.7.0 and 9
.8.0" | 235 echo "We've tested binaries built on 9.7.0 to work with 9.6.1, 9.7.0 and 9
.8.0" |
232 build_valgrind "local" | 236 build_valgrind "local" |
233 else | 237 else |
234 build_valgrind "mac" | 238 build_valgrind "mac" |
235 fi | 239 fi |
236 ;; | 240 ;; |
237 *) | 241 *) |
238 build_valgrind "local" | 242 build_valgrind "local" |
239 ;; | 243 ;; |
240 esac | 244 esac |
OLD | NEW |