File tree 2 files changed +4
-12
lines changed
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ action("deno_cli_snapshots_build_run") {
99
99
]
100
100
args = [
101
101
rebase_path (" $root_out_dir /deno_cli_snapshots_build" ),
102
- rebase_path (" ." , root_build_dir ),
103
- rebase_path (root_out_dir ),
104
102
]
105
103
deps = [
106
104
" :deno_cli_snapshots_build" ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# 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.
5
3
import subprocess
6
4
import sys
7
5
import os
8
- import re
9
6
7
+ d = os .path .dirname (os .path .realpath (__file__ ))
10
8
exe = sys .argv [1 ]
11
- d = sys .argv [2 ]
12
- root_out_dir = sys .argv [3 ]
13
-
14
9
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 )
18
12
os .chdir (d )
19
- sys .exit (subprocess .call ([exe , "foo" ], env = env ))
13
+ sys .exit (subprocess .call ([exe ], env = env ))
You can’t perform that action at this time.
0 commit comments