diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-03-20 21:48:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 21:48:34 -0400 |
commit | 0adc86f105204b2475126c36dfc10e678f67df56 (patch) | |
tree | ff50bf401208fcb20e8828fbca10433b460fdeb0 /tools/benchmark.py | |
parent | 77a44163fb22139a8269eb216014640aaf7a7fa8 (diff) |
Remove DENO_BUILD_MODE and DENO_BUILD_PATH (#4431)
* Remove DENO_BUILD_MODE and DENO_BUILD_PATH
Also remove outdated docs related to ninja/gn.
* fix
* remove parameter to build_mode()
* remove arg parsing from benchmark.py
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py index c29ca3e8c..031da263b 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -223,15 +223,8 @@ def bundle_benchmark(deno_exe): return sizes -def main(argv): - if len(argv) == 2: - build_dir = sys.argv[1] - elif len(argv) == 1: - build_dir = build_path() - else: - print "Usage: tools/benchmark.py [build_dir]" - sys.exit(1) - +def main(): + build_dir = build_path() sha1 = run_output(["git", "rev-parse", "HEAD"], exit_on_fail=True).out.strip() http_server.spawn() @@ -271,4 +264,4 @@ def main(argv): if __name__ == '__main__': - main(sys.argv) + main() |