File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bazel/emscripten_toolchain Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 139
139
final_bytes .extend ((base_name + '.wasm.debug.wasm' ).encode ())
140
140
141
141
# Write our length + filename bytes to a temp file.
142
- with open ('debugsection .tmp' , 'wb+' ) as f :
142
+ with open (base_name + '_debugsection .tmp' , 'wb+' ) as f :
143
143
f .write (final_bytes )
144
144
f .close ()
145
145
152
152
subprocess .check_call ([
153
153
llvm_objcopy ,
154
154
wasm_base ,
155
- '--add-section=external_debug_info=debugsection .tmp' ])
155
+ '--add-section=external_debug_info=' + base_name + '_debugsection .tmp' ])
156
156
157
157
# Make sure we have at least one output file.
158
158
if not len (files ):
159
159
print ('emcc.py did not appear to output any known files!' )
160
160
sys .exit (1 )
161
161
162
162
# cc_binary must output exactly one file; put all the output files in a tarball.
163
- cmd = ['tar' , 'cf' , 'tmp .tar' ] + files
163
+ cmd = ['tar' , 'cf' , base_name + ' .tar' ] + files
164
164
subprocess .check_call (cmd , cwd = outdir )
165
- os .replace (os .path .join (outdir , 'tmp .tar' ), output_file )
165
+ os .replace (os .path .join (outdir , base_name + ' .tar' ), output_file )
166
166
167
167
sys .exit (0 )
You can’t perform that action at this time.
0 commit comments