OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009-2010 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 Memcheck for use with chromium | 7 # Script to build Memcheck for use with chromium |
8 source common.sh | 8 source common.sh |
9 | 9 |
10 # SVN isn't smart enough to figure out what rev of VEX to get, | 10 # SVN isn't smart enough to figure out what rev of VEX to get, |
11 # so you have to check that out by revision. | 11 # so you have to check that out by revision. |
| 12 if system_is_snow_leopard |
| 13 then |
| 14 MEMCHECK_SVN_REV=11175 |
| 15 MEMCHECK_VEX_SVN_REV=1982 |
| 16 else |
12 MEMCHECK_SVN_REV=11055 | 17 MEMCHECK_SVN_REV=11055 |
13 MEMCHECK_VEX_SVN_REV=1961 | 18 MEMCHECK_VEX_SVN_REV=1961 |
| 19 fi |
| 20 |
14 VG_MEMCHECK_DIR="$THISDIR/valgrind-memcheck" | 21 VG_MEMCHECK_DIR="$THISDIR/valgrind-memcheck" |
15 checkout_and_patch_valgrind "$MEMCHECK_SVN_REV" "$MEMCHECK_VEX_SVN_REV" \ | 22 checkout_and_patch_valgrind "$MEMCHECK_SVN_REV" "$MEMCHECK_VEX_SVN_REV" \ |
16 "$VG_MEMCHECK_DIR" | 23 "$VG_MEMCHECK_DIR" |
17 | 24 |
18 cd $VG_MEMCHECK_DIR | 25 cd $VG_MEMCHECK_DIR |
19 | 26 |
20 # Apply some Memcheck-specific pathes | 27 # Apply some Memcheck-specific pathes |
21 | 28 |
22 # Add feature bug https://bugs.kde.org/show_bug.cgi?id=201170 | 29 # Add feature bug https://bugs.kde.org/show_bug.cgi?id=201170 |
23 # "Want --show-possible option so I can ignore the bazillion possible leaks..." | 30 # "Want --show-possible option so I can ignore the bazillion possible leaks..." |
24 patch -p0 -i "${THISDIR}/possible.patch" | 31 patch -p0 -i "${THISDIR}/possible.patch" |
25 | 32 |
26 # Make red zone 64 bytes bigger to catch more buffer overruns | 33 # Make red zone 64 bytes bigger to catch more buffer overruns |
27 patch -p0 -i "${THISDIR}/redzone.patch" | 34 patch -p0 -i "${THISDIR}/redzone.patch" |
28 | 35 |
29 build_valgrind_for_available_platforms | 36 build_valgrind_for_available_platforms |
OLD | NEW |