OLD | NEW |
1 #!/bin/sh | 1 #!/bin/bash |
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 | 12 MEMCHECK_VV_REV=76 |
13 then | |
14 MEMCHECK_SVN_REV=11243 | |
15 MEMCHECK_VEX_SVN_REV=1997 | |
16 else | |
17 MEMCHECK_SVN_REV=11055 | |
18 MEMCHECK_VEX_SVN_REV=1961 | |
19 fi | |
20 | 13 |
21 VG_MEMCHECK_DIR="$VG_SRC_DIR/valgrind-memcheck" | 14 VG_MEMCHECK_DIR="$VG_SRC_DIR/valgrind-memcheck" |
22 checkout_and_patch_valgrind "$MEMCHECK_SVN_REV" "$MEMCHECK_VEX_SVN_REV" \ | 15 checkout_and_patch_valgrind_variant "$MEMCHECK_VV_REV" "$VG_MEMCHECK_DIR" |
23 "$VG_MEMCHECK_DIR" | |
24 | 16 |
25 cd "$VG_MEMCHECK_DIR" | 17 cd "$VG_MEMCHECK_DIR/valgrind" |
26 | |
27 # Apply some Memcheck-specific pathes | |
28 | |
29 # Add feature bug https://bugs.kde.org/show_bug.cgi?id=201170 | |
30 # "Want --show-possible option so I can ignore the bazillion possible leaks..." | |
31 patch -p0 -i "${THISDIR}/possible.patch" | |
32 | |
33 # Make red zone 64 bytes bigger to catch more buffer overruns | |
34 patch -p0 -i "${THISDIR}/redzone.patch" | |
35 | 18 |
36 build_valgrind_for_available_platforms | 19 build_valgrind_for_available_platforms |
OLD | NEW |