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 6161
6262 # If the output name has no extension, give it the appropriate extension.
6363 if not base_name_split [1 ]:
64- os .rename (output_file , output_file + '.' + oformat )
64+ os .replace (output_file , output_file + '.' + oformat )
6565
6666 # If the output name does have an extension and it matches the output format,
6767 # change the base_name so it doesn't have an extension.
7777 # Please don't do that.
7878 else :
7979 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 ))
8181
8282files = []
8383extensions = [
161161# cc_binary must output exactly one file; put all the output files in a tarball.
162162cmd = ['tar' , 'cf' , 'tmp.tar' ] + files
163163subprocess .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 )
165165
166166sys .exit (0 )
You can’t perform that action at this time.
0 commit comments