fbe7166685
This reverts commit 0c9d2805e8
.
Reason for revert: Broke iOS and SwiftShader (and maybe others)
Original change's description:
> [recipes] Isolate build outputs with no subdirs
>
> Bug: skia:6473
> Change-Id: If243b6afb748529d2bdb212e360cd4338edc929c
> Reviewed-on: https://skia-review.googlesource.com/130942
> Reviewed-by: Ben Wagner <benjaminwagner@google.com>
> Commit-Queue: Eric Boren <borenet@google.com>
TBR=borenet@google.com,benjaminwagner@google.com
Change-Id: Icf9490f2f88dc454c6d971f35258e219137b0c0e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:6473
Reviewed-on: https://skia-review.googlesource.com/131400
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
|
|
from . import default
|
|
|
|
|
|
"""Valgrind flavor, used for running code through Valgrind."""
|
|
|
|
|
|
class ValgrindFlavor(default.DefaultFlavor):
|
|
def __init__(self, m):
|
|
super(ValgrindFlavor, self).__init__(m)
|
|
self._suppressions_file = self.m.path['start_dir'].join(
|
|
'skia', 'tools', 'valgrind.supp')
|
|
self._valgrind_cipd_dir = self.m.vars.slave_dir.join('valgrind')
|
|
self._valgrind_fake_dir = self._valgrind_cipd_dir
|
|
self._valgrind = self._valgrind_fake_dir.join('bin', 'valgrind')
|
|
self._lib_dir = self._valgrind_fake_dir.join('lib', 'valgrind')
|
|
|
|
def step(self, name, cmd, **kwargs):
|
|
new_cmd = [self._valgrind, '--gen-suppressions=all', '--leak-check=full',
|
|
'--track-origins=yes', '--error-exitcode=1', '--num-callers=40',
|
|
'--suppressions=%s' % self._suppressions_file]
|
|
path_to_app = self.m.vars.skia_out.join(cmd[0])
|
|
new_cmd.append(path_to_app)
|
|
new_cmd.extend(cmd[1:])
|
|
with self.m.env({'VALGRIND_LIB': self._lib_dir}):
|
|
return self.m.run(self.m.step, name, cmd=new_cmd, **kwargs)
|