Skip to content

[debug] Use two digits for the temporary file counter. NFC #21207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,7 @@ def test_emcc_debug_files(self):
self.assertFalse(os.path.exists(self.canonical_temp_dir))
else:
print(sorted(os.listdir(self.canonical_temp_dir)))
self.assertExists(os.path.join(self.canonical_temp_dir, 'emcc-3-original.js'))
self.assertExists(os.path.join(self.canonical_temp_dir, 'emcc-03-original.js'))

def test_debuginfo_line_tables_only(self):
def test(do_compile):
Expand Down
2 changes: 1 addition & 1 deletion tools/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ def run_wasm_opt(infile, outfile=None, args=[], **kwargs): # noqa

def save_intermediate(src, dst):
if DEBUG:
dst = 'emcc-%d-%s' % (save_intermediate.counter, dst)
dst = 'emcc-%02d-%s' % (save_intermediate.counter, dst)
save_intermediate.counter += 1
dst = os.path.join(shared.CANONICAL_TEMP_DIR, dst)
logger.debug('saving debug copy %s' % dst)
Expand Down