Skip to content

Commit 316e46a

Browse files
committed
clean up
1 parent 4908932 commit 316e46a

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

cli_snapshots/BUILD.gn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ action("deno_cli_snapshots_build_run") {
9999
]
100100
args = [
101101
rebase_path("$root_out_dir/deno_cli_snapshots_build"),
102-
rebase_path(".", root_build_dir),
103-
rebase_path(root_out_dir),
104102
]
105103
deps = [
106104
":deno_cli_snapshots_build",

cli_snapshots/run.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
#!/usr/bin/env python
22
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
3-
# This file just executes its arguments, except that also adds GN_OUT_DIR and
4-
# CARGO_PKG_VERSION to the environ. This is for compatibility with cargo.
53
import subprocess
64
import sys
75
import os
8-
import re
96

7+
d = os.path.dirname(os.path.realpath(__file__))
108
exe = sys.argv[1]
11-
d = sys.argv[2]
12-
root_out_dir = sys.argv[3]
13-
149
env = os.environ.copy()
15-
env["CARGO_MANIFEST_DIR"] = os.path.abspath(d)
16-
env["OUT_DIR"] = root_out_dir
17-
10+
env["CARGO_MANIFEST_DIR"] = d
11+
env["OUT_DIR"] = os.path.dirname(exe)
1812
os.chdir(d)
19-
sys.exit(subprocess.call([exe, "foo"], env=env))
13+
sys.exit(subprocess.call([exe], env=env))

0 commit comments

Comments
 (0)