blob: 83a848d50b3049b015e2e8718d5e6ad9add6779c [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2# Copyright 2016 the V8 project authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import os
7
8BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9VALGRIND_DIR = os.path.join(BASE_DIR, 'third_party', 'valgrind')
10LINUX32_DIR = os.path.join(VALGRIND_DIR, 'linux_x86')
11LINUX64_DIR = os.path.join(VALGRIND_DIR, 'linux_x64')
12
13
14def DoMain(_):
15 """Hook to be called from gyp without starting a separate python
16 interpreter."""
17 return int(os.path.exists(LINUX32_DIR) and os.path.exists(LINUX64_DIR))
18
19
20if __name__ == '__main__':
21 print DoMain([])