Skip to content

Commit 4d0656a

Browse files
committed
Allow calling llvm_nm_multiple with zero files
1 parent 2859859 commit 4d0656a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/building.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ def make_paths_absolute(f):
362362
# The results are populated in nm_cache
363363
def llvm_nm_multiple(files):
364364
with ToolchainProfiler.profile_block('llvm_nm_multiple'):
365+
if len(files) == 0:
366+
return []
365367
# Run llvm-nm on files that we haven't cached yet
366368
llvm_nm_files = [f for f in files if f not in nm_cache]
367369
cmd = [LLVM_NM] + llvm_nm_files

0 commit comments

Comments
 (0)