Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 31, 2019
1 parent 4908932 commit 316e46a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions cli_snapshots/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ action("deno_cli_snapshots_build_run") {
]
args = [
rebase_path("$root_out_dir/deno_cli_snapshots_build"),
rebase_path(".", root_build_dir),
rebase_path(root_out_dir),
]
deps = [
":deno_cli_snapshots_build",
Expand Down
14 changes: 4 additions & 10 deletions cli_snapshots/run.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
#!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
# This file just executes its arguments, except that also adds GN_OUT_DIR and
# CARGO_PKG_VERSION to the environ. This is for compatibility with cargo.
import subprocess
import sys
import os
import re

d = os.path.dirname(os.path.realpath(__file__))
exe = sys.argv[1]
d = sys.argv[2]
root_out_dir = sys.argv[3]

env = os.environ.copy()
env["CARGO_MANIFEST_DIR"] = os.path.abspath(d)
env["OUT_DIR"] = root_out_dir

env["CARGO_MANIFEST_DIR"] = d
env["OUT_DIR"] = os.path.dirname(exe)
os.chdir(d)
sys.exit(subprocess.call([exe, "foo"], env=env))
sys.exit(subprocess.call([exe], env=env))

0 comments on commit 316e46a

Please sign in to comment.