File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bazel/emscripten_toolchain Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 61
61
62
62
# If the output name has no extension, give it the appropriate extension.
63
63
if not base_name_split [1 ]:
64
- os .rename (output_file , output_file + '.' + oformat )
64
+ os .replace (output_file , output_file + '.' + oformat )
65
65
66
66
# If the output name does have an extension and it matches the output format,
67
67
# change the base_name so it doesn't have an extension.
77
77
# Please don't do that.
78
78
else :
79
79
base_name = base_name_split [0 ]
80
- os .rename (output_file , os .path .join (outdir , base_name + '.' + oformat ))
80
+ os .replace (output_file , os .path .join (outdir , base_name + '.' + oformat ))
81
81
82
82
files = []
83
83
extensions = [
161
161
# cc_binary must output exactly one file; put all the output files in a tarball.
162
162
cmd = ['tar' , 'cf' , 'tmp.tar' ] + files
163
163
subprocess .check_call (cmd , cwd = outdir )
164
- os .rename (os .path .join (outdir , 'tmp.tar' ), output_file )
164
+ os .replace (os .path .join (outdir , 'tmp.tar' ), output_file )
165
165
166
166
sys .exit (0 )
You can’t perform that action at this time.
0 commit comments