Skip to content

Commit 9d97845

Browse files
committed
Resolve preview objdump from PATH
1 parent c64bbeb commit 9d97845

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎scripts/verify-layer-preview-abi.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ def find_objdump(explicit: str | None) -> str:
3434
xcrun = ""
3535
candidates.append(xcrun)
3636
for candidate in candidates:
37-
if candidate and pathlib.Path(candidate).is_file():
37+
if not candidate:
38+
continue
39+
resolved = shutil.which(candidate)
40+
if resolved:
41+
return resolved
42+
if pathlib.Path(candidate).is_file():
3843
return candidate
3944
raise RuntimeError("llvm-objdump not found; pass --objdump")
4045

0 commit comments

Comments
 (0)