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

Side by Side Diff: tools/dev/gm.py

Issue 2827383003: [gm.py] Add support for building mkgrokdump (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2017 the V8 project authors. All rights reserved. 2 # Copyright 2017 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 """\ 5 """\
6 Convenience wrapper for compiling V8 with gn/ninja and running tests. 6 Convenience wrapper for compiling V8 with gn/ninja and running tests.
7 Sets up build output directories if they don't exist. 7 Sets up build output directories if they don't exist.
8 Produces simulator builds for non-Intel target architectures. 8 Produces simulator builds for non-Intel target architectures.
9 Uses Goma by default if it is detected (at output directory setup time). 9 Uses Goma by default if it is detected (at output directory setup time).
10 Expects to be run from the root of a V8 checkout. 10 Expects to be run from the root of a V8 checkout.
(...skipping 19 matching lines...) Expand all
30 # All arches that this script understands. 30 # All arches that this script understands.
31 ARCHES = ["ia32", "x64", "arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64", 31 ARCHES = ["ia32", "x64", "arm", "arm64", "mipsel", "mips64el", "ppc", "ppc64",
32 "s390", "s390x", "x87"] 32 "s390", "s390x", "x87"]
33 # Arches that get built/run when you don't specify any. 33 # Arches that get built/run when you don't specify any.
34 DEFAULT_ARCHES = ["ia32", "x64", "arm", "arm64"] 34 DEFAULT_ARCHES = ["ia32", "x64", "arm", "arm64"]
35 # Modes that this script understands. 35 # Modes that this script understands.
36 MODES = ["release", "debug", "optdebug"] 36 MODES = ["release", "debug", "optdebug"]
37 # Modes that get built/run when you don't specify any. 37 # Modes that get built/run when you don't specify any.
38 DEFAULT_MODES = ["release", "debug"] 38 DEFAULT_MODES = ["release", "debug"]
39 # Build targets that can be manually specified. 39 # Build targets that can be manually specified.
40 TARGETS = ["d8", "cctest", "unittests", "v8_fuzzers"] 40 TARGETS = ["d8", "cctest", "unittests", "v8_fuzzers", "mkgrokdump"]
41 # Build targets that get built when you don't specify any (and specified tests 41 # Build targets that get built when you don't specify any (and specified tests
42 # don't imply any other targets). 42 # don't imply any other targets).
43 DEFAULT_TARGETS = ["d8"] 43 DEFAULT_TARGETS = ["d8"]
44 # Tests that run-tests.py would run by default that can be run with 44 # Tests that run-tests.py would run by default that can be run with
45 # BUILD_TARGETS_TESTS. 45 # BUILD_TARGETS_TESTS.
46 DEFAULT_TESTS = ["cctest", "debugger", "intl", "message", "mjsunit", 46 DEFAULT_TESTS = ["cctest", "debugger", "intl", "message", "mjsunit",
47 "preparser", "unittests"] 47 "preparser", "unittests"]
48 # These can be suffixed to any <arch>.<mode> combo, or used standalone, 48 # These can be suffixed to any <arch>.<mode> combo, or used standalone,
49 # or used as global modifiers (affecting all <arch>.<mode> combos). 49 # or used as global modifiers (affecting all <arch>.<mode> combos).
50 ACTIONS = { 50 ACTIONS = {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 if return_code == 0: 304 if return_code == 0:
305 _Call("notify-send 'Done!' 'V8 compilation finished successfully.'", 305 _Call("notify-send 'Done!' 'V8 compilation finished successfully.'",
306 silent=True) 306 silent=True)
307 else: 307 else:
308 _Call("notify-send 'Error!' 'V8 compilation finished with errors.'", 308 _Call("notify-send 'Error!' 'V8 compilation finished with errors.'",
309 silent=True) 309 silent=True)
310 return return_code 310 return return_code
311 311
312 if __name__ == "__main__": 312 if __name__ == "__main__":
313 sys.exit(Main(sys.argv)) 313 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698