summaryrefslogtreecommitdiffstats
path: root/chromium/v8/build/has_valgrind.py
blob: 83a848d50b3049b015e2e8718d5e6ad9add6779c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
VALGRIND_DIR = os.path.join(BASE_DIR, 'third_party', 'valgrind')
LINUX32_DIR = os.path.join(VALGRIND_DIR, 'linux_x86')
LINUX64_DIR = os.path.join(VALGRIND_DIR, 'linux_x64')


def DoMain(_):
  """Hook to be called from gyp without starting a separate python
  interpreter."""
  return int(os.path.exists(LINUX32_DIR) and os.path.exists(LINUX64_DIR))


if __name__ == '__main__':
  print DoMain([])