3ec1417050
This enables downloading all gcmole dependencies from google storage on demand, controlled by a gyp flag "gcmole=1". This makes the analysis portable to any linux64 host. The archive contains a prebuilt clang in the needed version, the gcmole plugin and a lua binary. The tool can be run through a new wrapper that sets up the environment. This'll ease running it on swarming. BUG=chromium:535160 LOG=n Review URL: https://codereview.chromium.org/1703533002 Cr-Commit-Position: refs/heads/master@{#34046}
22 lines
664 B
Python
Executable File
22 lines
664 B
Python
Executable File
#!/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
|
|
import subprocess
|
|
import sys
|
|
|
|
GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__))
|
|
CLANG_BIN = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'bin')
|
|
CLANG_PLUGINS = os.path.join(GCMOLE_PATH, 'gcmole-tools')
|
|
LUA = os.path.join(GCMOLE_PATH, 'gcmole-tools', 'lua52')
|
|
DRIVER = os.path.join(GCMOLE_PATH, 'gcmole.lua')
|
|
|
|
assert len(sys.argv) == 2
|
|
|
|
sys.exit(subprocess.call(
|
|
[LUA, DRIVER, sys.argv[1]],
|
|
env={'CLANG_BIN': CLANG_BIN, 'CLANG_PLUGINS': CLANG_PLUGINS},
|
|
))
|