Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Unified Diff: tools/gcmole/run-gcmole.py

Issue 1703533002: [Swarming] Bundle gcmole tools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Correctly exit wrapper. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gcmole/gcmole-tools.tar.gz.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gcmole/run-gcmole.py
diff --git a/tools/gcmole/run-gcmole.py b/tools/gcmole/run-gcmole.py
new file mode 100755
index 0000000000000000000000000000000000000000..9f7e2465fdffa0e8bf61c186961551f7a6bc6bba
--- /dev/null
+++ b/tools/gcmole/run-gcmole.py
@@ -0,0 +1,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
+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},
+))
« no previous file with comments | « tools/gcmole/gcmole-tools.tar.gz.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698